- Modify mediaflux script file from $MFLUX_HOME/bin/unix/mediaflux and install it to /etc/init.d/mediaflux.
- create systemd unit file at /lib/systemd/system/mediaflux.service
[Unit] Description=Mediaflux Server After=remote-fs.target [Service] Type=forking ExecStart=/etc/init.d/mediaflux start ExecStop=/etc/init.d/mediaflux force-stop [Install] WantedBy=multi-user.target
- Enable the systemd unit (so that it is called on reboot)
sudo systemctl enable mediaflux.service
- Start the service manually(without reboot)
sudo systemctl start mediaflux.service
Search This Blog
Start Mediaflux server on system reboot using systemd on Ubuntu Linux 16.04
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment