summaryrefslogtreecommitdiff
path: root/community/smbnetfs/smbnetfs.service
diff options
context:
space:
mode:
Diffstat (limited to 'community/smbnetfs/smbnetfs.service')
-rw-r--r--community/smbnetfs/smbnetfs.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/community/smbnetfs/smbnetfs.service b/community/smbnetfs/smbnetfs.service
new file mode 100644
index 000000000..cf3cd0f58
--- /dev/null
+++ b/community/smbnetfs/smbnetfs.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Mount Samba Shares
+After=network.target
+
+[Service]
+Environment=HOME=/etc/smbnetfs SMBNETFS_MOUNT_POINT=/mnt/smbnet
+EnvironmentFile=/etc/conf.d/smbnetfs
+User=nobody
+ExecStart=/usr/bin/smbnetfs -f -o allow_other $SMBNETFS_MOUNT_POINT
+ExecStop=/bin/fusermount -u $SMBNETFS_MOUNT_POINT
+
+[Install]
+WantedBy=multi-user.target