Skip to content

Latest commit

 

History

History
54 lines (42 loc) · 952 Bytes

README.md

File metadata and controls

54 lines (42 loc) · 952 Bytes

Background Services for Sensing and Actuation

Table of Contents

Creating Service

Move the service to the system directory

sudo mv ~/pi-system-service/service_name.service /etc/systemd/system/service_name.service

Reload the systemctl daemon

sudo systemctl daemon-reload

Enable the service

sudo systemctl enable service_name.service

Start the service

sudo systemctl start service_name.service

Check Service Status

Service status

sudo systemctl status service_name.service

Service Restart

Service restart

sudo systemctl restart dht11.service

Delete Service

Stop the service

sudo systemctl stop dht11.service

Remove the service

sudo rm /etc/systemd/system/dht11.service