Re: cant find log file for crashed daemon
Reply #2 –
more progress, im having a blast
it was actually dumb of me to assume the service would start as my main user where all the config files are. I used printf to debug and looked at some variables:
start() {
ebegin "Starting syncthing"
#- printf "${SYNCTHING_USER}\n\n\n\n${SYNCTHING_ADDRESS}LLLLL\n\n\n\n${SYNCTHING_ARGS} \n\n\n"
start-stop-daemon --start --make-pidfile --pidfile /run/syncthing.pid \
--background --user ${SYNCTHING_USER} --name syncthing \
--exec /usr/bin/syncthing -- -gui-address=${SYNCTHING_ADDRESS} ${SYNCTHING_ARGS}
eend $?
}
should i just edit SYNCTHING_ADDRESS, SYNCTHING_ADDRESS and SYNCTHING_ARGS in this file or is there a better way to do it?
im not sure why those variables have a value even though they are never assigned.
edit: it works now, btw, just wondering what to do about those variables, and should i run the service as my regular user, should i even edit this file, and general good way to do this