-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The generated init script doesn't start synoindexwatcher at boot #49
Comments
Hej, are you able to start Synoindex Watcher manualy by using the init-script ( |
Hello. Starting it directly works fine :
while killing the process with Then, trying to start it with the script will give :
While no process is running. So, i've deleted the /var/run/synoindewwatcher.pid and tried the start script again. Then i've killed the process, remove the .pid and reboot. After reboot, synoindexwatcher is NOT running (no process from ps aux | grep synoindexwatcher), but a pid file exist at /var/run/synoindexwatcher.pid |
I assume that the config- and/or log-file cannot be found, because you are using relative paths. Could you use absolute paths (like Please ensure that the files are existing and that the user, who runs Synoindex Watcher, can access them. You can create an empty logfile easily via |
Thanks for you answer :) Well, i'm not using relative paths in /usr/local/etc/rc.d/S99synoindexwatcher.sh : Also, /usr/local/etc/rc.d/S99synoindexwatcher.sh is supposed to be run by root at boot isn't it ?
|
Oh, my bad. The paths and access rights seem to look right. Does the logfile contain any output? It would be nice, if you could post it here. Otherwise the line to start Synoindex Watcher might have some kind of bug. Could you test the following commands and post their output, if an error occurs?
|
I've tried to move conf and log file to Made both owned by root:root and 755. But, it still doesn't start at boot...
No, only : I guess because of Your commands does works fine without errors... |
I know this message is two years old, but if it can help anyone, here's what I successfully did on my Syno. To set up a configuration that will survive any DSM update/reboot, here's what I did (adjust the commands according to your configuration). In my setup, all my Docker stuff, including this great Synoindex Watcher Python script, is located in this path: First, as recommended, I installed Python virtual environment: Then, I generated the config and init file: I have updated the configuration file with the correct log file path:
For the init file, I added the line
From here, you don't need an SSH connection anymore. The first benefit is that, with the correct permissions on your NAS, you can access all the config, init, and log files through SMB or whatever connection you are using (NFS, etc...). The final step is to start and stop the Synoindex Watcher. To do so, you need to create two tasks in the DSM task scheduler. One task should run when the NAS boots up, and the other task should run when the NAS stops (or reboots, as it is the same process). With this solution, you can even start and stop the script without the need to log on through an SSH connection. The setup allows you to manage the Synoindex Watcher easily through the DSM task scheduler, providing a more user-friendly approach. I hope these tips will be helpful to others. |
Hello.
My generated script doesn't start up at NAS boot, i have to launch it manually at every reboot.
I'm sorry, i can't find alone where can the issue come from.
Here are the informations.
$ python3 -m synoindexwatcher --generate-init --config=/volume1/homes/jo/synoindexwatcher.conf --logfile=/volume1/homes/jo/synoindexwatcher.log | sudo tee /usr/local/etc/rc.d/S99synoindexwatcher.sh
$ sudo chmod a+x /usr/local/etc/rc.d/S99synoindexwatcher.sh
The text was updated successfully, but these errors were encountered: