What's new

services-stop not working

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

bmn1

Senior Member
Hello,

I created a file "/jffs/scripts/services-stop" that should execute the file "/jffs/scripts/fake-hwclock save", but this isn't working.

Manually starting the script works, it creates a file /jffs/fake-hwclock.data and appends the line correctly.

After rebooting, "/jffs/scripts/services-start" gets executed, but services-stop doesn't even show up in my log files.

/jffs/scripts/services-stop:
Code:
#!/bin/sh
/jffs/scripts/fake-hwclock save

Permissions were set with:
chmod a+rx /jffs/scripts/*

Edit: I'm using an Asus RT-AC68U with the latest Asuswrt-Merlin 380.57
 
Sorry for bumping my thread.

Is this a bug in the latest Asuswrt firmware or did I something wrong?
 
I would check the content of fate-hw lock. Maybe you can post here?
 
Can't post it right now, since I'm not at home.
Content was created fine when I ran it manually.

The problem is the script doesn't get started at restarting or shutting the router down and on again.

Edit: I thought this is a core functionality of Asuswrt-Merlin, hoped to get an idea from Merlin. :)
 
Last edited:
Solved it.

I'm really sorry for opening this thread, problem was following:
I saved the scripts with Notepad++ as unix file.
Creating them with vi made it work!
 

Similar threads

Sign Up For SNBForums Daily Digest

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