Can't start service without sudo #265
-
I need to run "Syncthing should not run as a privileged or system user. Please consider using a normal user account." And I can't access folder with all sync files with root. I tried disabling service with root: Then run: Then created empty file: So I didn't know what to put into that file and I looked at man pages saw only one mention of I saw #183 and #189 but it seems I got different issue and it could have been something I messed up while setting up dinit during install. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi. I think you misunderstood about using dinit as service manager.
Also dinit daemon for your user will be not ran by default and you need to run it manually. Take a look at #183 Regards |
Beta Was this translation helpful? Give feedback.
Hi.
I think you misunderstood about using dinit as service manager.
For running a service as any user than root you have these options:
Running your service in system instance of dinit. You should create a service for system instance of dinit in
/etc/dinit.d/
or/lib/dinit.d/
or/usr/local/lib/dinit.d
directory and setrun-as
option as your user:command = /usr/bin/my_daemon run-as = mobin ...
Running a user instance of dinit and put your service on it. You should create
~/.config/dinit.d
and createboot
service at threre and run dinit as your user bydinit &
command. then put your services on~/.config/dinit.d
directory and start them with dinitctl withoutsudo
and as your user:dini…