Commit Graph

33 Commits

Author SHA1 Message Date
Daniel Theophanes 5ab7ce2c8f service: fix misc typos. 2015-09-01 09:34:29 -07:00
Alan Shreve b008df209b Change escaping rules of executable paths to cope with older versions of systemd 2015-08-10 17:23:52 -07:00
Daniel Theophanes b7229667de service: make System.String() consistent.
Fixes #15
2015-05-01 12:16:19 -07:00
Daniel Theophanes 3a7d893dde service: move windows and darwin to system registry.
Also add API to handle the system registry.
2015-03-11 12:42:30 -07:00
Daniel Theophanes c880387dea service: break out each linux service into its own file.
Breaking apart each service reduces the overall number of branches
in the code, but increases duplication. Duplication can be taken
care of in follow-up commits while still keeping the clarity of
linear code.

Also expiriment with code that would allow the user to add or remove
systems. Still expirimental and not exposed in the API.
2015-03-08 17:29:10 -07:00
Daniel Theophanes 9056e1f7ee service: fix templates. Add full test. 2015-03-07 09:42:36 -08:00
Alan Shreve b77e4717bc add support for program arguments in sysv/upstart 2015-03-07 00:08:30 -08:00
Paweł Błaszczyk c2882bf784 deps: Switch osext's repo (bitbucket->github). 2015-02-24 09:19:55 +01:00
Daniel Theophanes 18c6e7250d service: enable more config params on systemd. 2015-01-24 15:29:42 -08:00
Daniel Theophanes e2c71385b0 service: enable systemd service. 2015-01-18 17:48:14 -08:00
Daniel Theophanes 0de2108b82 service: rename Service.Remove to Service.Uninstall. 2015-01-18 12:35:38 -08:00
Daniel Theophanes 46a24fdb2f service: document user services on linux are not supported. 2015-01-13 22:43:18 -08:00
Daniel Theophanes 2b410d62be service: update comments. 2015-01-13 21:54:35 -08:00
Daniel Theophanes bc48b26bdb service: update api. 2015-01-13 21:40:07 -08:00
Daniel Theophanes 071b50c909 service: for upstart use INT so go process doesn't stop before Stop handler. 2015-01-13 20:33:11 -08:00
Daniel Theophanes 8b12f7ccf2 service: move to v2 API (beta). 2015-01-13 09:41:14 -08:00
Daniel Theophanes e8fe9e16c3 fix upstart detect. Add platform test. 2014-10-29 09:05:24 -07:00
Daniel Theophanes 7a0abbd49c linux: change ifs to switches. 2014-10-29 08:50:16 -07:00
Daniel Theophanes 41caac0c1f service: remove unused const. 2014-05-27 22:21:54 -07:00
Daniel Theophanes 782c78354d service: create a new front end api option. Allow backends to be configured. 2014-05-27 22:19:11 -07:00
Daniel Theophanes f3ac4f8b66 service: remove un-needed line in upstart config. 2014-05-27 07:13:09 -07:00
Daniel Theophanes eb52bdfe36 all: run goimports. 2014-05-27 07:11:50 -07:00
millken chen 95bdef7979 fix linux start & stop command 2014-05-27 12:31:47 +00:00
Julien Vehent 66aa50c1e0 better upstart detection 2014-05-07 13:48:49 -04:00
Julien Vehent 6c04ccb76d Add System-V support 2014-04-21 09:09:51 -04:00
Tam?s Gul?csi 4889b5f340 Add systemd support 2014-01-30 18:57:00 +01:00
Daniel Theophanes 663a6abbf9 Breaking change to logger interface, remove Log prefix. 2013-03-02 22:38:31 -08:00
Daniel Theophanes da2c993cb8 Use osext package for getting the executable name. 2013-01-11 16:54:30 -08:00
Daniel Theophanes 132c4b486b Break Service interface into smaller chunks. Add Start and Stop methods. 2012-10-22 23:44:42 -07:00
Daniel Theophanes 5d7860a265 Add setuid. 2012-05-16 23:56:00 -07:00
Daniel Theophanes 5a91d69e9a Set signal to quit. 2012-05-11 01:50:50 -07:00
Daniel Theophanes 82c9b0060c go fmt. 2012-05-11 01:33:29 -07:00
Daniel Theophanes a172bea54d Add Linux Upstart support. 2012-05-11 01:13:06 -07:00