summarylogtreecommitdiffstats
path: root/megasyncd@.service
diff options
context:
space:
mode:
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
-