-
Notifications
You must be signed in to change notification settings - Fork 389
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
cannot run "sudo /etc/ss-bash/ssadmin.sh start" in /etc/rc.local #41
Comments
Failed to run sscounter. Maybe failed to create interval timer. |
Because sscounter runs as a process,not a daemon, it may have some problem in such a special session (rc.local) |
Here is my /etc/rc.local
there are two auto start command, It can start lotServer.sh correctly, but cannot start ssadmin.sh
But when I run
Why ? |
I have fingure out the problem. |
I can run it in ssh, but when I put "sudo /etc/ss-bash/ssadmin.sh start" in /etc/rc.local, I always receive an error message saying "sscounter.sh启动失败"
The below is the error log, any idea?
rc-local.service - /etc/rc.local Compatibility
Loaded: loaded (/lib/systemd/system/rc-local.service; static; vendor preset: enabled)
Drop-In: /lib/systemd/system/rc-local.service.d
└─debian.conf
Active: failed (Result: exit-code) since Thu 2017-07-13 03:18:37 UTC; 11min ago
Process: 1150 ExecStart=/etc/rc.local start (code=exited, status=1/FAILURE)
Jul 13 03:18:33 ubuntu-16-04-LTS-SG systemd[1]: Starting /etc/rc.local Compatibility...
Jul 13 03:18:35 ubuntu-16-04-LTS-SG sudo[1152]: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/etc/ss-bash/ssadmin.sh start
Jul 13 03:18:35 ubuntu-16-04-LTS-SG sudo[1152]: pam_unix(sudo:session): session opened for user root by (uid=0)
Jul 13 03:18:37 ubuntu-16-04-LTS-SG rc.local[1150]: sscounter.sh启动中...
Jul 13 03:18:37 ubuntu-16-04-LTS-SG rc.local[1150]: sscounter.sh启动失败
Jul 13 03:18:37 ubuntu-16-04-LTS-SG systemd[1]: rc-local.service: Control process exited, code=exited status=1
Jul 13 03:18:37 ubuntu-16-04-LTS-SG systemd[1]: Failed to start /etc/rc.local Compatibility.
Jul 13 03:18:37 ubuntu-16-04-LTS-SG systemd[1]: rc-local.service: Unit entered failed state.
Jul 13 03:18:37 ubuntu-16-04-LTS-SG systemd[1]: rc-local.service: Failed with result 'exit-code'.
The text was updated successfully, but these errors were encountered: