标签: java linux service apache-commons apache-commons-daemon
假设我有一个名为myapp.jar的可执行JAR。 Apache Commons-Daemon是否存在,以便我可以编写/etc/init.d/myapp服务脚本(用于启动/停止myapp服务),然后将myapp视为常规Linux服务:< / p>
myapp.jar
/etc/init.d/myapp
myapp
service myapp stop service myapp start service myapp restart
还是做其他事情?