1 |
[Unit] |
2 |
Description=Madsonic media streaming solution |
3 |
After= network-online.target |
4 |
|
5 |
[Service] |
6 |
Restart=always |
7 |
RestartSec=5 |
8 |
EnvironmentFile=/etc/sysconfig/madsonic |
9 |
User=madsonic |
10 |
Group=madsonic |
11 |
#Environment=MADSONIC_HOME=/var/madsonic MADSONIC_HOST=0.0.0.0 MADSONIC_PORT=4041 MADSONIC_HTTPS_PORT=0 MADSONIC_CONTEXT_PATH=/madsonic |
12 |
ExecStart=/usr/bin/madsonic \ |
13 |
--init-memory=192 \ |
14 |
--pidfile=/run/madsonic/madsonic.pid \ |
15 |
--update=false \ |
16 |
--home=${MADSONIC_HOME} \ |
17 |
--host=${MADSONIC_HOST} \ |
18 |
--port=${MADSONIC_PORT} \ |
19 |
--https-port=${MADSONIC_HTTPS_PORT} \ |
20 |
--context-path=${MADSONIC_CONTEXT_PATH} \ |
21 |
--max-memory=${MADSONIC_MAX_MEMORY} \ |
22 |
--default-music-folder=${MADSONIC_DEFAULT_MUSIC_FOLDER} \ |
23 |
--default-upload-folder=${MADSONIC_DEFAULT_UPLOAD_FOLDER} \ |
24 |
--default-podcast-folder=${MADSONIC_DEFAULT_PODCAST_FOLDER} \ |
25 |
--default-playlist-import-folder=${MADSONIC_DEFAULT_PLAYLIST_IMPORT_FOLDER} \ |
26 |
--default-playlist-export-folder=${MADSONIC_DEFAULT_PLAYLIST_EXPORT_FOLDER} \ |
27 |
--default-playlist-backup-folder=${MADSONIC_DEFAULT_PLAYLIST_BACKUP_FOLDER} \ |
28 |
--default-transcode-folder=${MADSONIC_DEFAULT_TRANSCODE_FOLDER} \ |
29 |
--timezone=${MADSONIC_DEFAULT_TIMEZONE} \ |
30 |
--gzip=${MADSONIC_GZIP} \ |
31 |
--test=${MADSONIC_TEST} |
32 |
KillMode=mixed |
33 |
PIDFile=/run/madsonic/madsonic.pid |
34 |
SuccessExitStatus=143 |
35 |
|
36 |
[Install] |
37 |
WantedBy=multi-user.target sme-server.target |