Reputation: 527
For example - i have process id which i want to restart. What command i should use to restart this process application ? I didn't find something about it(
Thanks!
Upvotes: 2
Views: 53309
Reputation: 15241
You can find very similar question at Restart process script linux.
Linux doesn't have general command for restart, normally you should kill your process and start it over. However, if your process has been started as a service, i.e. it's contained in /etc/init.d/ directory, then you can do the following:
/etc/init.d/SERVICE_NAME restart
or
service SERVICE_NAME restart
Upvotes: 5