Questions tagged «sysvinit»

1
在系统启动时在Ubuntu上运行Jar文件
我正在尝试在Ubuntu机器上启动时运行.jar文件,但我没有得到任何地方。我试过这里的说明https://askubuntu.com/questions/99232/how-to-make-a-jar-file-run-on-startup-and-when-you-log-out,我'尝试使用Upstart网站和食谱中的信息,但他们没有工作。我已经尝试了旧的SysV和新的Upstart方法,但它们都没有在系统启动时启动.jar。 这是运行.jar的shell脚本 #!/bin/bash java -jar TransformationServer.jar SysV启动方法的文件 #!/bin/bash # Transformation Server # # Description: Transforms incoming messages on a given port and forwards them case $1 in start) /bin/bash /usr/local/bin/ServerStart.sh ;; stop) /bin/bash /usr/local/bin/ServerStop.sh ;; restart) /bin/bash /usr/local/bin/ServerStop.sh /bin/bash /usr/local/bin/ServerStart.sh ;; esac exit 0 UpStart方法 # transformationserver - transforms incoming …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.