Lapo wrote:Yes, though Ubuntu has switched from init to systemd and we haven't looked into it yet.
Cool, well whenever you guys get around to it, systemd integration should be simple... I think my bottom example is "pretty close" to all you need. I just missed something somewhere... I am definitely not a system admin. I use to pay $100 support tickets on Joyent when I needed a simple extension like Amf-C installed.
//smartFoxServer2X.service - Goes in /etc/systemd/system/
//Activate on reboot with "systemctl enable smartFoxServer2X.service"
Code: Select all
[Unit]
Description=SmartFoxServer 2X
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/home/SmartFoxServer_2X/SFS2X
ExecStart=/home/SmartFoxServer_2X/SFS2X/sfs2x-service
Restart=on-abort
[Install]
WantedBy=multi-user.target