irishjd Posted April 1, 2023 Share Posted April 1, 2023 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 1 Quote Link to comment
Solution sircompo Posted December 21, 2023 Solution Share Posted December 21, 2023 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. Quote Link to comment
irishjd Posted December 21, 2023 Author Share Posted December 21, 2023 @sircompoThanks! Quote Link to comment
Recommended Posts
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.