summarylogtreecommitdiffstats
path: root/jamulus.service
blob: 9ee7ecb4177d97661a647064dc03be75455da611 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# To modify the server configuration, run `sudo systemctl edit jamulus` and
# add this section:
# [Service]
# Environment="central_server=anygenre3.jamulus.io:22624"
# Environment="server_info=yourServerName;yourCity;[country ID]"
# Environment=status_file=/var/lib/jamulus/status.html
# Environment="welcome_message=Welcome to my Jamulus server"
# Environment="extra_flags=--fastupdate --multithreading"

[Unit]
Description=Jamulus headless server
After=network.target

[Service]
Type=simple
User=jamulus
Group=nobody
NoNewPrivileges=true
ProtectSystem=true
ProtectHome=true
Nice=-20
IOSchedulingClass=realtime
IOSchedulingPriority=0
Environment="extra_flags=--fastupdate --multithreading"

ExecStart=/usr/bin/jamulus -s -n -e "${central_server}" -o "${server_info}" -m "${status_file}" -w "${welcome_message}" $extra_flags

Restart=on-failure
RestartSec=30
StandardOutput=journal
StandardError=inherit
SyslogIdentifier=jamulus

[Install]
WantedBy=multi-user.target