Welcome to Produsat Forum

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Register Log in

Tutorial Systemd service for multics & scheduled restart of multics..

b4mb

Member
Joined
Dec 11, 2021
Messages
2
Reaction score
1
Points
207
Age
48
Offline
Here is how to automatically restart a crashed multics process with systemd. (tested on ubuntu & debian)

- create a new systemd service
Code:
Please, Log in or Register to view codes content!

- add the following content
Code:
Please, Log in or Register to view codes content!

- modify this line that matches your paths & bin & config name:
Code:
Please, Log in or Register to view codes content!

- once you’ve created the service, you need to reload the systemd daemons by issuing
Code:
Please, Log in or Register to view codes content!

- start the multics by issuing
Code:
Please, Log in or Register to view codes content!

- to ensure multics starts on boot, to do that, issue the following command
Code:
Please, Log in or Register to view codes content!

- to check multics is running by running the following command
Code:
Please, Log in or Register to view codes content!

If multics crashes it will start again automatically.

--

If you want to reboot a multics (service) than you can create a cron job

- add a cron job by editing crontab with following command
Code:
Please, Log in or Register to view codes content!

- let's say You want to restart multics at 3 AM every day, than add the following line:
Code:
Please, Log in or Register to view codes content!

or
Code:
Please, Log in or Register to view codes content!

or
Code:
Please, Log in or Register to view codes content!

- after editing and saving then you need to restart the crontab with:
Code:
Please, Log in or Register to view codes content!

That it's.

Now You have auto restart of multics proces after crash and reboot of multics at 3 AM at your VPS.
 
Top