Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,25 @@ The easiest way to install most Python packages is via ``easy_install`` or ``pip

$ easy_install zukebox

Installing as a systemd daemon
------------------------------

Starting automatically with systemd (you might need to modify username/path):

$ cp -a etc/systemd/system/zukebox.service /etc/systemd/system/zukebox.service
$ chmod 664 /etc/systemd/system/zukebox.service
$ systemctl daemon-reload
$ systemctl start zukebox # (optional) try if it works
$ systemctl enable zukebox

ZukeBox is started with screen, so eg you can attach to it by:

$ screen -r

(Make sure you are the same user you are running zukebox with.)

After this, pressing "Ctrl+a" "d" moves it back to the background.

Usage
-----

Expand Down
13 changes: 13 additions & 0 deletions etc/systemd/system/zukebox.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Unit]
Description=ZukeBox With Screen
After=network.target

[Service]
Type=forking
User=alarm
ExecStart=/usr/bin/screen -d -m -S zukebox /home/alarm/zukebox/bin/zukebox
ExecStop=/usr/bin/killall -w zukebox
WorkingDirectory=/home/alarm

[Install]
WantedBy=multi-user.target