summarylogtreecommitdiffstats
path: root/metube.service
blob: fe0a41232e9231381362283e18dfdcee44da53a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[Unit]
Description = Metube Daemon (user).
Wants = network-online.target
After = network-online.target

[Service]
Restart = on-failure
Environment = DOWNLOAD_DIR="%h"
Environment = STATE_DIR="%C/metube"
EnvironmentFile = -%E/metube/metube.env
ExecStartPre = /usr/bin/sh -c "/usr/bin/mkdir -p %E/metube %C/metube"
ExecStartPre = /usr/bin/sh -c "if [ ! -f %E/metube/metube.env ]; then /usr/bin/cp /usr/share/metube/metube.env.example %E/metube/metube.env; fi"
ExecStart = /usr/bin/metube

[Install]
WantedBy = default.target