daemon icon indicating copy to clipboard operation
daemon copied to clipboard

daemon service does not work in suse11sp3

Open jgbooks opened this issue 4 years ago • 2 comments

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:~ # 

jgbooks avatar Jul 24 '20 10:07 jgbooks

-bash: status: command not found

jgbooks avatar Jul 24 '20 11:07 jgbooks

I refer to this project https://github.com/kardianos/service/blob/master/service_sysv_linux.go

jgbooks avatar Aug 05 '20 09:08 jgbooks