Commit Graph
14 Commits
Author SHA1 Message Date
SteelPhaseandDaniel Theophanes 15406c80f4 Return a better status for "activating" 2020-06-07 11:14:48 -07:00
SteelPhaseandDaniel Theophanes 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
SteelPhaseandDaniel Theophanes 8f267d80f2 Potentially resolve issue with os signals (#144)
* change error format

* capture SIGTERM for upstart, ignore SIGKILL

* for windows only notify on SIGINT
2018-08-22 17:15:10 -07:00
SteelPhaseandDaniel Theophanes 45244176fc Add support for retrieving service status (#143)
* update command execution to support returing error codes, and stdout

add function to service interface to support returning service status

clean up places where strings were being converted to strings

* Spelling fix

* Simply service Status method

Add stopped detection to launchd
Switch to case statements
Return ErrNotInstalled in situations where we should
2018-08-22 11:05:01 -07:00
SteelPhaseandDaniel Theophanes 4cdeddd6f4 remove debug statements 2018-08-21 09:13:27 -07:00
SteelPhaseandDaniel Theophanes 4f2cc00692 stdout/stderr isn't supported by all versions of systemd 2018-08-21 09:13:27 -07:00
SteelPhaseandDaniel Theophanes e5178e50d2 add support for overriding service templates at runtime 2018-08-21 09:13:27 -07:00
SteelPhaseandDaniel Theophanes 994866c14a add file logging support to systemd 2018-08-20 21:45:52 -07:00
SteelPhaseandDaniel Theophanes 3bfa85e2d7 use /sbin/initctl to detect upstart 2018-08-20 21:45:14 -07:00
SteelPhaseandDaniel Theophanes 18492ae499 Remove const/structs that were included in error 2018-08-20 11:44:20 -07:00
SteelPhaseandDaniel Theophanes 46447978a4 use new versionAtMost function 2018-08-20 11:44:20 -07:00
SteelPhaseandDaniel Theophanes d1814f7d33 update upstart version check logic 2018-08-20 11:44:20 -07:00
SteelPhaseandDaniel Theophanes 1166804cbc update upstart script 2018-08-20 11:44:20 -07:00
SteelPhaseandDaniel Theophanes a37cd5efa8 Update linux upstart detection to support RHEL6 (#92)
* Update linux upstart detection to support RHEL6

I've added additional detection logic to the isUpstart function, that should validate the existence of upstart on a RHEL 6 system.

* Remove debug message
2017-05-10 05:15:22 -07:00