+ shepherd --version
shepherd (GNU Shepherd) 0.10.1
Copyright (C) 2023 the Shepherd authors
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
+ herd --version
herd (GNU Shepherd) 0.10.1
Copyright (C) 2023 the Shepherd authors
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
+ socket=t-socket-3937
+ conf=t-conf-3937
+ log=t-log-3937
+ pid=t-pid-3937
+ service_pid=t-service-pid-3937
+ herd='herd -s t-socket-3937'
+ trap 'cat t-log-3937 || true; rm -f t-socket-3937 t-conf-3937 t-service-pid-3937 t-log-3937;
test -f t-pid-3937 && kill `cat t-pid-3937` || true; rm -f t-pid-3937' EXIT
+ cat
+ rm -f t-pid-3937
+ test -f t-pid-3937
+ sleep 0.3
+ shepherd -I -s t-socket-3937 -c t-conf-3937 -l t-log-3937 --pid=t-pid-3937
+ test -f t-pid-3937
+ sleep 0.3
+ test -f t-pid-3937
+ sleep 0.3
+ test -f t-pid-3937
+ sleep 0.3
+ test -f t-pid-3937
+ sleep 0.3
Starting service root...
Service root started.
Service root running with value #t.
Service root has been started.
+ test -f t-pid-3937
+ sleep 0.3
Starting service test-works...
+ test -f t-pid-3937
+ sleep 0.3
+ test -f t-pid-3937
+ sleep 0.3
+ test -f t-pid-3937
+ sleep 0.3
+ test -f t-pid-3937
+ sleep 0.3
+ test -f t-pid-3937
+ sleep 0.3
+ test -f t-pid-3937
+ sleep 0.3
Service test-works has been started.
Service test-works started.
Service test-works running with value 5371.
+ test -f t-pid-3937
++ cat t-pid-3937
+ shepherd_pid=4685
+ grep running
+ herd -s t-socket-3937 status test-works
It is running since 14:39:18 (0 seconds ago).
+ test -f t-service-pid-3937
++ cat t-service-pid-3937
+ kill -0 5371
+ herd -s t-socket-3937 stop test-works
Stopping service test-works...
Service test-works stopped.
Service test-works is now stopped.
+ rm t-service-pid-3937
+ herd -s t-socket-3937 start test
Service test could not be started.
herd: error: failed to start service test
+ true
+ herd -s t-socket-3937 status test
+ grep stopped
It is stopped (failing).
+ test -f t-service-pid-3937
++ cat t-service-pid-3937
+ kill -0 7771
./tests/pid-file.sh: line 127: kill: (7771) - No such process
+ true
+ rm -f t-service-pid-3937
+ herd -s t-socket-3937 start test-daemonizes
Service test-daemonizes could not be started.
herd: error: failed to start service test-daemonizes
+ true
+ herd -s t-socket-3937 status test-daemonizes
+ grep stopped
It is stopped (failing).
+ test -f t-service-pid-3937
++ cat t-service-pid-3937
+ kill -0 12006
+ false
+ cat t-log-3937
2023-06-11 14:39:15 Starting service root...
2023-06-11 14:39:15 Service root started.
2023-06-11 14:39:15 Service root running with value #t.
2023-06-11 14:39:15 Service root has been started.
2023-06-11 14:39:16 Starting service test-works...
2023-06-11 14:39:18 Service test-works has been started.
2023-06-11 14:39:18 Service test-works started.
2023-06-11 14:39:18 Service test-works running with value 5371.
2023-06-11 14:39:19 Stopping service test-works...
2023-06-11 14:39:19 Service test-works stopped.
2023-06-11 14:39:19 Service test-works is now stopped.
2023-06-11 14:39:19 Starting service test...
2023-06-11 14:39:25 Service test could not be started.
2023-06-11 14:39:25 Service test failed to start.
2023-06-11 14:39:26 Starting service test-daemonizes...
2023-06-11 14:39:32 Service test-daemonizes could not be started.
2023-06-11 14:39:32 Service test-daemonizes failed to start.
+ rm -f t-socket-3937 t-conf-3937 t-service-pid-3937 t-log-3937
+ test -f t-pid-3937
++ cat t-pid-3937
+ kill 4685
+ rm -f t-pid-3937
Stopping service root...
Exiting shepherd...
Exiting.
Some deprecated features have been used. Set the environment
variable GUILE_WARN_DEPRECATED to "detailed" and rerun the
program to get more information. Set it to "no" to suppress
this message.
FAIL tests/pid-file.sh (exit status: 1)