diff options
author | jujudusud | 2022-08-19 22:38:41 +0200 |
---|---|---|
committer | jujudusud | 2022-08-19 22:38:41 +0200 |
commit | ffd4287f1a5194d9e46916540fdc0c2130fb16f4 (patch) | |
tree | 758d23e6ed979dfbcdefdc3c825befbfba5297b8 /jamulus.service | |
parent | b0b0b8799ad4b509e321167d459b2d0a479f88d6 (diff) | |
download | aur-ffd4287f1a5194d9e46916540fdc0c2130fb16f4.tar.gz |
Synchronising with oasmc repository
Diffstat (limited to 'jamulus.service')
-rw-r--r-- | jamulus.service | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/jamulus.service b/jamulus.service new file mode 100644 index 000000000000..9ee7ecb4177d --- /dev/null +++ b/jamulus.service @@ -0,0 +1,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 |