Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to make services in linux

[Unit]
Description=<description about this service>

[Service]
User=<user e.g. root>
WorkingDirectory=<directory_of_script e.g. /root>
ExecStart=<script which needs to be executed>
Restart=always

[Install]
WantedBy=multi-user.target
Source by www.shubhamdipt.com #
 
PREVIOUS NEXT
Tagged: #services #linux
ADD COMMENT
Topic
Name
8+7 =