daemon
daemon copied to clipboard
daemon service does not work in suse11sp3
tag:1.0.0 os :Linux suse11SP3X64 3.0.76-0.11-default #1 SMP Fri Jun 14 08:21:43 UTC 2013 (ccab990) x86_64 x86_64 x86_64 GNU/Linux
##My execution order is as follows:
suse11SP3X64:~ # ./mytest remove
Removing My Echo Service: [ OK ]
suse11SP3X64:~ # ./mytest install
Install My Echo Service: [ OK ]
suse11SP3X64:~ # ./mytest start
Starting My Echo Service: [ OK ]
suse11SP3X64:~ # ./mytest status
Service is stopped
suse11SP3X64:~ # ./mytest stop
Stopping My Echo Service: [FAILED]
Error: Service has already been stopped
suse11SP3X64:~ # ./mytest start
Starting My Echo Service: [ OK ]
suse11SP3X64:~ # ./mytest status
Service is stopped
suse11SP3X64:~ # ./mytest stop
Stopping My Echo Service: [FAILED]
Error: Service has already been stopped
suse11SP3X64:~ # ./mytest status
Service is stopped
suse11SP3X64:~ # ./mytest status
Service is stopped
suse11SP3X64:~ # ./mytest start
Starting My Echo Service: [FAILED]
Error: exit status 7
suse11SP3X64:~ #
-bash: status: command not found
I refer to this project https://github.com/kardianos/service/blob/master/service_sysv_linux.go