summarylogtreecommitdiffstats
path: root/megasyncd@.service
diff options
context:
space:
mode:
authorMatthias Van Gestel2021-05-04 19:58:54 +0200
committerMatthias Van Gestel2021-05-04 19:58:54 +0200
commit245179eaea56bd3a88ced78b318c60c654f2245f (patch)
tree21772c9ee998d7d39e33bc75ad82ea6229eebe9c /megasyncd@.service
parent69380ca5d5051119ff7a8aa6cd5787f6a7e34745 (diff)
downloadaur-megasync-headless.tar.gz
Update to v3.8.6
Diffstat (limited to 'megasyncd@.service')
-rw-r--r--megasyncd@.service6
1 files changed, 4 insertions, 2 deletions
diff --git a/megasyncd@.service b/megasyncd@.service
index 8bbac701d3f..263a2faa0ef 100644
--- a/megasyncd@.service
+++ b/megasyncd@.service
@@ -6,7 +6,10 @@ After=local-fs.target network.target
Type=simple
User=%I
EnvironmentFile=/etc/conf.d/megasync.conf
-ExecStart=/usr/bin/bash -c "cd $MEGA_WORK_DIR && /usr/bin/megasimplesync $MEGA_LOCAL_DIR $MEGA_REMOTE_DIR"
+WorkingDirectory=/tmp/
+ExecStartPre=-/usr/bin/mkdir -p $MEGA_LOCAL_DIR
+ExecStartPre=/bin/sleep 45
+ExecStart=/usr/bin/megasimplesync $MEGA_LOCAL_DIR $MEGA_REMOTE_DIR
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
@@ -14,4 +17,3 @@ RestartSec=30s
[Install]
WantedBy=multi-user.target
-