You are not logged in.
Hi,
I was in the Samba wiki, and I wanted to test smbnetfs, but since I'm testing systemd right now, I notice that smbnetfs doesn't provide any .service file.
Have you got an idea ?
Thanks,
Offline
I put stuff that has no .service in rc.conf
Haven't found another way yet
Last edited by boast (2012-08-24 15:50:16)
Asus M4A785TD-V ;; Phenom II X4 @ 3.9GHz ;; Ripjaws 12GB DDR3-1600 ;; 128GB Samsung 830 ;; MSI GTX460 v2 w/ blob ;; Arch Linux + KDE 4.x
Offline
I put stuff that has no .service in rc.conf
Haven't found another way yet
I have installed a pure systemd install according to the systemd archwiki page. This means that rc.conf have no function anymore right and it also means that I can't use smbnetfs anymore since I can't load the daemon/service.
Offline
I haven't tested it but something like this should work. - Tested and fixed. (make sure to set user_allow_other in /etc/fuse.conf).
[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.targetLast edited by Stebalien (2012-08-31 16:51:16)
Offline
@Stebalien I did `systemctl enable smbnetfs.service` and is properly loaded but I still don't see any mounts. It used to work before switching to systemd.
Offline