33 Commits

Author SHA1 Message Date
s.solodyagin 0811cea833 rename 2024-04-03 20:39:20 +03:00
Daniel Theophanes 5544762d3e service/example/runner: do not check ProcessState as it may be nil
Fixes #218
2020-06-07 11:01:04 -07: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
Daniel Theophanes 56787a3ea0 remove dep on osext 2019-02-08 09:29:24 -08:00
Daniel Theophanes 5ab7ce2c8f service: fix misc typos. 2015-09-01 09:34:29 -07:00
Daniel Theophanes 1ab12303aa service: block on windows stop so restart is more robust.
Previous behavior simply signalled the service to stop.
The new behavior actually waits for the service to stop.
This makes the Restart method for windows to be more robust
when a service takes more time to clean up.
2015-06-05 09:22:14 -07:00
Daniel Theophanes 03368a8262 service/example: add comment to example config struct. 2015-05-01 13:55:23 -07:00
Daniel Theophanes 4f242c891a service/example: remove trailing return 2015-05-01 13:49:20 -07:00
Daniel Theophanes 87e1886ce4 service/example: gofmt -s 2015-05-01 13:47:05 -07:00
Daniel Theophanes 09da6fcd5a service/example/runner: append envs. 2015-03-29 00:11:40 -07:00
Daniel Theophanes 842e0b7dbc service/example/runner: write std out, std err to files. 2015-03-28 23:46:22 -07:00
Daniel Theophanes 0dd4771d9c service/example: add exec runner. 2015-03-28 23:31:00 -07:00
Daniel Theophanes 17f5541e81 service: return better error messages from executed commands. 2015-03-14 08:14:25 -07:00
Daniel Theophanes 18e8cc1986 service/example: add a super simple example. Use in doc. 2015-01-21 14:46:30 -08:00
Daniel Theophanes dfca0ec817 service: update example to use correct import path. 2015-01-21 14:30:16 -08:00
Daniel Theophanes b7b2695e94 service: move System methods to global functions. 2015-01-18 16:36:42 -08:00
Daniel Theophanes 11801c088b service: update windows to use arguments. 2015-01-18 16:16:42 -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 b9ab29aa33 service/example: use logger. 2015-01-13 09:45:48 -08:00
Daniel Theophanes 8b12f7ccf2 service: move to v2 API (beta). 2015-01-13 09:41:14 -08:00
Daniel Theophanes 5174c72421 service/example: clean up after stop. 2014-05-28 11:32:19 -07:00
Daniel Theophanes 2c5b2362ec service/example: update to not deadlock. 2014-05-28 11:15:24 -07:00
Daniel Theophanes eb52bdfe36 all: run goimports. 2014-05-27 07:11:50 -07:00
Daniel Theophanes f23a9c357e Fix example for altered Logging interface. 2013-03-04 17:29:32 -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 abf7cbf3fa Update to not use cgo but to use Alex's winsvc 2012-08-22 15:51:49 -07:00
Daniel Theophanes 890a07a762 Add error to NewService. 2012-05-11 01:12:44 -07:00
Daniel Theophanes 3c947a228d Add description field. 2012-03-09 21:56:50 -08:00
Daniel Theophanes 9c12e059b5 Clean up api and gofmt. 2012-03-08 10:09:00 -08:00
Daniel Theophanes b86ed93d86 First commit with working windows service. 2012-03-08 09:25:13 -08:00