aboutsummaryrefslogtreecommitdiff
path: root/src/system/files/systemd/user/syncthing.service
diff options
context:
space:
mode:
authorAaditya Dhruv <[email protected]>2023-09-10 13:12:57 -0500
committerAaditya Dhruv <[email protected]>2023-09-10 13:12:57 -0500
commit2c4e604049ef625049d1fbb6ad241dffea800bea (patch)
treed05f77d7ea5d7df77277af60681673bfd77c13cf /src/system/files/systemd/user/syncthing.service
parent58169328b1ed3b5c2d47ab917d2f9eca9548c15b (diff)
Add system roles
System roles handle system level configuration like systemd services, wireguard etc.
Diffstat (limited to 'src/system/files/systemd/user/syncthing.service')
-rw-r--r--src/system/files/systemd/user/syncthing.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/system/files/systemd/user/syncthing.service b/src/system/files/systemd/user/syncthing.service
new file mode 100644
index 0000000..67fa2cd
--- /dev/null
+++ b/src/system/files/systemd/user/syncthing.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Syncthing podman container
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=true
+ExecStart=/usr/bin/podman-compose -f /home/aaditya/containers/syncthing/compose.yaml up -d
+ExecStop=/usr/bin/podman-compose -f /home/aaditya/containers/syncthing/compose.yaml down
+
+[Install]
+WantedBy=multi-user.target