Maycon Santos
15772f72c0
add rcS support
2022-09-01 16:22:00 +02:00
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
tomfeigin
bc65850ac5
Allow setting environment variables for services ( #312 )
...
Setting environment variables for services running with systemd, OSx or
windows
2022-04-27 07:11:36 -05:00
Eugene
17a2c7bcb5
Adds service control options for Windows service. ( #258 )
...
- StartType string ("automatic") - start service. Constants: ServiceStartDisabled, ServiceStartManual, ServiceStartDisabled
- OnFailure string ("noaction" ) - action to perform on service failure. Constants: OnFailureRestart, OnFailureReboot, OnFailureNoAction
- OnFailureDelayDuration string ( "1s" ) - delay before restarting the service, time.Duration string.
- OnFailureResetPeriod int ( 10 ) - reset period for errors, seconds.
Fixes kardianos/service#226
Fixes kardianos/service#207
Fixes kardianos/service#103
Co-authored-by: Eugene <jdevelop@users.noreply.github.com >
Co-authored-by: Daniel Theophanes <kardianos@gmail.com >
2021-06-10 07:11:16 -05:00
Aram
c7e6b82e87
allow inteactive setting mode for windows ( #253 )
...
Co-authored-by: Aram <aram.petrosyan@unity3d.com >
Co-authored-by: Daniel Theophanes <kardianos@gmail.com >
2021-06-10 07:02:15 -05:00
djdv
8eb6809ed2
Add documentation for platform options and expose to Godoc ( #266 )
2021-06-10 06:49:49 -05:00
Karen Almog
ef35c56320
Add support for OpenRC services (alpine/busybox) ( #252 )
2020-12-11 08:35:37 -06:00
jhvaras
41add7e3c9
Shutdowner interface and Windows trigger ( #225 )
...
* Shutdowner interface and Windows trigger
* Updating Shutdown doc
Stop won't be called when Shutdown is.
Co-authored-by: Juan Hernandez <jhernandez@newrelic.com >
2020-11-16 08:58:05 -06:00
Utkarsh Dixit
a91b404a4f
service(windows): add support for delayed auto start service ( #244 )
...
* service(windows): added option flag for delayed automatic start
* service(windows): added option flag for delayed automatic start
Co-authored-by: Utkarsh Dixit <utkarsh.dixit@siemens.com >
2020-11-16 08:47:17 -06:00
Simon Backx
a1c091bc7f
Added LimitNOFILE option in systemd configuration ( #94 )
...
Co-authored-by: Daniel Theophanes <kardianos@gmail.com >
2020-06-07 11:51:47 -07:00
Jakob Borg
f5ff0fc585
Clarify Interface.Start() documentation comment ( #179 )
2020-06-07 11:43:39 -07:00
Gadzev
6fb11709cd
Fixed typo in function documentation
2020-06-07 11:24:57 -07:00
chbuescher
7c2e4f75a4
Initial support for aix and solaris ( #194 )
...
* initial support for aix and solaris
* support for aix & solaris - missing changes
2019-12-10 19:14:15 -08:00
ANDREY KHASANOV
6b582019e8
Redirect logs to std for mac ( #196 )
...
Add support for StandardOutPath and StandardErrorPath for darwin
2019-12-10 19:12:41 -08:00
Rozen Lin
fffe6c52ed
Support the systemd option setting for 'Restart' and 'SuccessExitStatus ( #168 )
...
* support the dependency config for linux systemd
* remote the binary file incorrectly added
* Support the systemd option setting for 'Restart' and 'SuccessExitStatus'
2019-05-14 08:51:56 -07:00
RozenLin
0e5bec1b9e
Systemd/dep ( #165 )
...
* support the dependency config for linux systemd
* remote the binary file incorrectly added
2019-03-26 09:10:25 -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
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
e5178e50d2
add support for overriding service templates at runtime
2018-08-21 09:13:27 -07:00
SteelPhase
18492ae499
Remove const/structs that were included in error
2018-08-20 11:44:20 -07:00
SteelPhase
1166804cbc
update upstart script
2018-08-20 11:44:20 -07:00
Daniel Theophanes
ef06f2f890
service: do not call osext if go1.8+ is used
2017-02-07 11:25:59 -08:00
Daniel Theophanes
2dbca8fa3b
service: add pidfile option
2016-02-08 13:59:12 -08: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