Jump to content

Restart services from the cli?

Featured Replies

Posted

Hello All,

I am working on a user script, and I need to be able to restart a service (snmpd) from within the script. I have tried the usual commands "service" and "systemctl", but neither work in Unraid.

 

Thanks,

Jon

Solved by sircompo

Go to solution
  • 8 months later...
  • Solution

I was just wondering about this myself.

Turns out that in Slackware the services are controlled using their 'run command' scripts under /etc/rc.d/ (nostalgia intensifies!).

 

This should do the trick for snmpd, assuming it's installed -

 

/etc/rc.d/rc.snmpd restart

 

I appreciate this is an old post but thought I'd respond anyway as it may save someone else a little time in the future.

 

Regards,

Dave.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...