What's new

scMerlin scMerlin 2.5.47 - Service and script control menu for Asuswrt-Merlin

Not sure what prompted your post, but if this is directed at me, due to the query I posted above then thank you for the warning, I admit to having had a few dim moments over the years, both locally and over a VPN, but ultimately nothing that cannot ultimately be solved by a hard reset; albeit clearly for remote systems I prefer that not to be the outcome in every case.

You would hopefully see from past posts that I am reasonably aware of at least some of the services I restart on a regular basis, service restart_wireless being one of them (service restart_mdns, service restart_leds, service restart_dnsmasq, service restart_httpd being among others).

I felt however that in this instance (and taking on your board your note of caution here) there was some clarity required where the Service Name stated e.g. "Wifi" with a nice Big Restart Button, that the service was indeed the same service restart_wireless command I have issued via SSH on more occasions than I can recall :-).

But again, you are correct to point these out, so the concern is appreciated.
What prompted the post was that there are often in replies the odd command string with no explanation of what is does.
People will often remember something but not remember the why of it.

I simply wanted to expand peoples knowledge without tempting 'dangerous' playing about with commands !!!

Knowledge is power ... as long as you know the downsides as well !!! :)

Not aimed at anyone just wanted to fill in the blanks for someone.

I like to know and I am sure others do BUT often one does not know where to start.

:D
 
'service' follows a pattern as follows:

service <action>_<servicename>

Don't miss the underscore in the middle (no spaces either side)
A side note complementing what @Twiglets explained in his earlier post.
The service script can actually take arguments along with the action to be executed. I figured this out some time ago as I needed it so bad in early days while "playing" around with the service script.
An example:
Code:
service "restart_wan_if 0"
service "restart_wan_if 1"

Not aimed at anyone just wanted to fill in the blanks for someone.
Again for @jksmurf, I too am putting this out to help whoever needs it in the future.
 
<grin> spot on ... thanks for the update/clarification.

This is another of those 'Rabbit Hole' situations where you can get lower & lower in detail !!!
I tried to keep it simple ... not everyone has a background in 'playing' with shells/scripting.

Not a criticism as I needed to stop myself from going too far and confusing the intended audience or myself :confused:;)
As I have mentioned before I 'like' reading MAN pages & github and similar repositories to understand things, when my brain still works.
o_O
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top