Skip to content

cloud-and-smart-labs/pi-system-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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