-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
name: unrecognized service under CentOS 6.5 #49
Comments
Hi, |
The same error info. I compiled simplest demo, and run it. And I found the "name.conf" under /etc/init/. But "service name status" or "service name start" still not work. |
If your service has been installed in CentoOS 6, it has file |
No. Only etc/init/ has name.conf file |
It means the service hasn't installed, possible cases:
|
"sudo" still the same. And, the example print error message if error happened, but the app only print service install success message. |
The call of // Standard service path for systemV daemons
func (linux *systemVRecord) servicePath() string {
return "/etc/init.d/" + linux.name
} // Install the service
func (linux *systemVRecord) Install(args ...string) (string, error) {
srvPath := linux.servicePath()
file, err := os.Create(srvPath)
if err != nil {
return installAction + failed, err
}
defer file.Close() |
Some questions:
|
1、YES --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=28966, si_status=0, si_utime=0, si_stime=0} --- Install description: [ OK ] +++ exited with 0 +++ |
Sorry, other command |
Output of stat("/run/systemd/system", 0xc42006a1d8) = -1 ENOENT (No such file or directory) Should I move main file to "/usr/local/sbin/" before running it? And, there is a daemon/daemon_linux_upstart.go Line 24 in 2d1aaa3
|
After moving main file to /usr/local/sbin/, output of stat("/run/systemd/system", 0xc42008a108) = -1 ENOENT (No such file or directory) |
Do you have upstart system installed on your VM? |
It's a physical machine. CentOS release 6.5 (Final). Text UI. |
In this case you should use |
If you need, I'd like to send you a temp CentOS 6.* vps account to check this issue. |
I see two solutions here: Can I close the ticket? |
OK, if I really need a library like this repo, I will fork a new version and try to fix it. Thank you. |
I have created the new issue #50 with label |
I use simplest example in README
https://github.com/takama/daemon#examples
After running the demo, I tried to stop this service with "service name stop", but returns error: "name: unrecognized service"
The text was updated successfully, but these errors were encountered: