Skip to content
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

Ubuntu(搬瓦工vps)reboot自启动失败,java进程起不来 #65

Open
coolerlan opened this issue Apr 20, 2016 · 0 comments
Open

Comments

@coolerlan
Copy link

用rc.local的方法各种失败,后来查到upstart的方法才成功。/etc/init/fs.conf内容如下

start on runlevel [2345]
stop on shutdown

expect fork

script
    cd /fs/
    java -Xmx80M -XX:MaxGCPauseMillis=30 -jar fs.jar > server.log 2>&1
    emit fs_running
end script

rc.local方法起不来,会不会是java的runlevel的问题?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant