Commit Graph

38 Commits

Author SHA1 Message Date
Maycon Santos 15772f72c0 add rcS support 2022-09-01 16:22:00 +02:00
Karen Almog ef35c56320 Add support for OpenRC services (alpine/busybox) (#252) 2020-12-11 08:35:37 -06:00
pavelbazika 19f776cc5f Detection of interactive session fixed for systemd user services (#246)
Co-authored-by: Pavel Bazika <pavel.bazika@icewarp.com>
2020-11-16 08:45:35 -06:00
Rustam 4df36c9fc1 Fix the inability to start with logger in docker contianer (#178)
* check for docker/lxc in isInteractive() for linux

* more clear logic and function name

* add some tests for linux part

* fix test

* cover coverage
2019-10-17 07:57:38 -07:00
SteelPhase b1866cf769 Add ability for service to report the system managing the service (#147)
* Add ability for service to report the system managing the service

* Clarify that the output of SystemName should return the same value as Platform in most cases

* Rename SystemName to Platform to match the rest of the package

* be a little more clear in the Platform comment
2018-09-10 15:42:44 -07:00
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