|
@@ -0,0 +1,14 @@
|
|
|
+[Unit]
|
|
|
+Description = TUNA mirrors sync worker
|
|
|
+After=network.target
|
|
|
+
|
|
|
+[Service]
|
|
|
+Type=simple
|
|
|
+User=tunasync
|
|
|
+PermissionsStartOnly=true
|
|
|
+ExecStartPre=/usr/bin/cgcreate -t tunasync -a tunasync -g cpu:tunasync
|
|
|
+ExecStart=/home/bin/tunasync worker -c /etc/tunasync/worker.conf --with-systemd
|
|
|
+ExecStopPost=/usr/bin/cgdelete cpu:tunasync
|
|
|
+
|
|
|
+[Install]
|
|
|
+WantedBy=multi-user.target
|