Commit Graph

26 Commits

Author SHA1 Message Date
tomfeigin abe98a9274 Provide custom log directory for posix (#311)
When running a service with posix, provide a custom path to the
service output
2022-04-28 07:56:17 -05:00
Dean(老路) 3c356ae54c Upstart supports the "restart" option (#193) 2019-12-10 19:17:25 -08: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
SteelPhase 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
SteelPhase 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
SteelPhase 4cdeddd6f4 remove debug statements 2018-08-21 09:13:27 -07:00
SteelPhase e5178e50d2 add support for overriding service templates at runtime 2018-08-21 09:13:27 -07:00
SteelPhase 3bfa85e2d7 use /sbin/initctl to detect upstart 2018-08-20 21:45:14 -07:00
SteelPhase 46447978a4 use new versionAtMost function 2018-08-20 11:44:20 -07:00
SteelPhase d1814f7d33 update upstart version check logic 2018-08-20 11:44:20 -07:00
SteelPhase 1166804cbc update upstart script 2018-08-20 11:44:20 -07:00
Ryan Chipman 1dd765d045 BI-1472: Fix upstart service on 0.6.5 and earlier 2018-03-02 13:07:06 -08:00
itnihao 89346fbade Update service_upstart_linux.go 2018-01-04 09:27:56 -08:00
Daniel Theophanes f6635a45ec service: add missing imports 2017-05-10 12:40:35 -07:00
SteelPhase 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
Justin McCarthy 58e40a0bfa conditionally set service to run as .UserName variable 2016-08-19 15:45:40 -07:00
Daniel Theophanes 5f98fcd9ec service: update API to allow for programs that install their own signal handlers. 2016-02-05 09:48:50 -08:00
Daniel Theophanes 5ab7ce2c8f service: fix misc typos. 2015-09-01 09:34:29 -07:00
Daniel Theophanes 4841cf3be4 service: move UserService field to Option. Update readme. Remove beta tag. 2015-05-01 08:15:06 -07:00
Daniel Theophanes 3ed03fd6f7 upstart: add working dir and chroot dir. 2015-04-19 17:25:11 -07:00
Daniel Theophanes 9a30c55e3f service: add minor docs addition and error messages. 2015-03-26 22:49:40 -07:00
Daniel Theophanes 49d681e0cb service: add Config.Executable field to allow service to control other binaries. 2015-03-14 08:49:17 -07:00
Daniel Theophanes 17f5541e81 service: return better error messages from executed commands. 2015-03-14 08:14:25 -07:00
Rob Napier 4d849b25a4 Remove os.Kill from POSIX platforms where it can't be caught 2015-03-13 17:52:30 -04:00
Rob Napier 34797be7d7 Run() should watch for SIGTERM on POSIX platforms 2015-03-13 15:53:26 -04:00