38 lines
1.3 KiB
SYSTEMD
38 lines
1.3 KiB
SYSTEMD
![]() |
[Unit]
|
||
|
Description=Madsonic media streaming solution
|
||
|
After= network-online.target
|
||
|
|
||
|
[Service]
|
||
|
Restart=always
|
||
|
RestartSec=5
|
||
|
EnvironmentFile=/etc/sysconfig/madsonic
|
||
|
User=madsonic
|
||
|
Group=madsonic
|
||
|
#Environment=MADSONIC_HOME=/var/madsonic MADSONIC_HOST=0.0.0.0 MADSONIC_PORT=4041 MADSONIC_HTTPS_PORT=0 MADSONIC_CONTEXT_PATH=/madsonic
|
||
|
ExecStart=/usr/bin/madsonic \
|
||
|
--init-memory=192 \
|
||
|
--pidfile=/run/madsonic/madsonic.pid \
|
||
|
--update=false \
|
||
|
--home=${MADSONIC_HOME} \
|
||
|
--host=${MADSONIC_HOST} \
|
||
|
--port=${MADSONIC_PORT} \
|
||
|
--https-port=${MADSONIC_HTTPS_PORT} \
|
||
|
--context-path=${MADSONIC_CONTEXT_PATH} \
|
||
|
--max-memory=${MADSONIC_MAX_MEMORY} \
|
||
|
--default-music-folder=${MADSONIC_DEFAULT_MUSIC_FOLDER} \
|
||
|
--default-upload-folder=${MADSONIC_DEFAULT_UPLOAD_FOLDER} \
|
||
|
--default-podcast-folder=${MADSONIC_DEFAULT_PODCAST_FOLDER} \
|
||
|
--default-playlist-import-folder=${MADSONIC_DEFAULT_PLAYLIST_IMPORT_FOLDER} \
|
||
|
--default-playlist-export-folder=${MADSONIC_DEFAULT_PLAYLIST_EXPORT_FOLDER} \
|
||
|
--default-playlist-backup-folder=${MADSONIC_DEFAULT_PLAYLIST_BACKUP_FOLDER} \
|
||
|
--default-transcode-folder=${MADSONIC_DEFAULT_TRANSCODE_FOLDER} \
|
||
|
--timezone=${MADSONIC_DEFAULT_TIMEZONE} \
|
||
|
--gzip=${MADSONIC_GZIP} \
|
||
|
--test=${MADSONIC_TEST}
|
||
|
KillMode=mixed
|
||
|
PIDFile=/run/madsonic/madsonic.pid
|
||
|
SuccessExitStatus=143
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target sme-server.target
|