SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

SongKong for Linux as a Daemon Service

Index

Previous
Next

Run SongKong as a Service on Linux

SongKong can be run in Remote Mode as a background service on Debian, Ubuntu and other compatible Linux systems using init.d.

Edit songkong.init and change:

SONGKONG_HOME=/opt/songkong

to the folder where SongKong is installed.

Then run the following commands from the SongKong installation folder:

sudo cp songkong.init /etc/init.d/songkong
sudo chmod +x /etc/init.d/songkong
sudo update-rc.d songkong defaults
sudo service songkong start

SongKong will now start automatically when the computer starts.

You can manually start, stop, restart or check the status of SongKong using:

sudo service songkong start
sudo service songkong stop
sudo service songkong restart
sudo service songkong status

Previous
Next

For distributions that use systemd (Debian, Ubuntu etc.):
Open a new service configuration file in a text editor:

sudo nano /etc/systemd/system/songkong.service

Paste the following text into the file. Make sure to change /opt/songkong to your actual installation folder if it is different:

[Unit]
Description=SongKong Music Tagger Service
After=network.target

[Service]
Type=simple
WorkingDirectory=/opt/songkong
ExecStart=/opt/songkong/songkongremote.sh
Restart=on-failure
User=your standard Linux username

[Install]
WantedBy=multi-user.target

Run the following commands to register, enable, and start the service:

sudo systemctl daemon-reload
sudo systemctl enable songkong.service
sudo systemctl start songkong.service