我想发布一个只应该注册为systemd
服务的应用程序。
除了应用程序,我想提供一个脚本来将应用程序注册为systemd
服务。
所以目前,我使用myapp.service
模板文件发布应用程序,以及复制myapp.service
和更新其值的脚本。
但我不喜欢这个解决方案。
我可以.service
从命令行创建文件吗?像systemd new -name myapp -description "my description" -after network.target -exec path/to/exec
什么?
systemd ×1