Skip to content

SunatP/Simple_Chat

Repository files navigation

Emergency Chat SystemX !

Create Service with using Systemd

  1. Create some name that you want and add extension ".service" after your service name => simple.service
  2. sudo nano your name.service
  3. Add this code to your service
[Unit]
Description=Your Description
After=multi-user.target

[Service]
Type=idle
ExecStart=/Path to run the program/ /Path to run file/
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target
  1. Save and exit
  2. give a 644 permission to your file service with chmod
  3. run this two command to operate your service
sudo systemctl daemon-reload
sudo systemctl enable /path of yourservice.service
  1. reboot the system
  2. to grab the log, use this command
sudo systemctl status yourservice

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published