cfnet-fs:system_service:index
Running cfnet-fs as a System Service
cfnet-fs can be run as a system service so that is runs whenever the system its running on boots.
- Copy the
cfnet-fsexecutable to/usr/local/bin/:sudo cp cfnet-fs /usr/local/bin/ sudo chmod +x /usr/local/bin/cfnet-fs
- Create a
/etc/systemd/system/cfnet-fs.servicefile with the following contents:[Unit] Description=Run cfnet-fs filesystem service After=multi-user.target [Service] Type=oneshot RemainAfterExit=true ExecStart=/usr/local/bin/cfnet-fs /tmp/cfnet-fs /dev/i2c-0 /dev/i2c-1 /dev/i2c-3 [Install] WantedBy=multi-user.target
- Enable the service so it will start whenever the system boots:
sudo systemctl enable cfnet-fs.service
- Reboot, or run the following to start the service immediately:
sudo systemctl start cfnet-fs.service
cfnet-fs/system_service/index.txt · Last modified: by 127.0.0.1
