1 2 3 4 5 6 7 8 9 10 11 12 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