To move freenet from /opt to /home, I followed the instructions here:
https://wiki.freenetproject.org/Moving_an_Installation
i.e. I changed all occurrences of /opt in freenet.ini to /home.

I use systemd, and updated the freenet.service file to reflect the new
location. For good measure, I changed the freenet user's home directory
from /opt/freenet to /home/freenet, too.

Systemd was unable to start freenet, however. The log says only that the
main process exited with status 1 and the systemd unit consequently failed
with result 'exit-code'. (Exact log below.)

I found more references to /opt in run.sh and wrapper.config, which
suggests the above wiki page is incomplete, at best. I changed those
occurrences too, but no luck.

Pls halp.
​
​Ivo​

​LOG (note last 4 lines in particular):

Sep 08 15:19:27 myhost.mydomain sudo[26977]:    myuser : TTY=pts/0 ;
PWD=/home/freenet ; USER=root ; COMMAND=/usr/bin/systemctl start freenet
Sep 08 15:19:27 myhost.mydomain sudo[26977]: pam_unix(sudo:session):
session opened for user root by myuser(uid=0)
Sep 08 15:19:27 myhost.mydomain systemd[1]: Starting Freenet...
-- Subject: Unit freenet.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit freenet.service has begun starting up.
Sep 08 15:19:27 myhost.mydomain polkitd[553]: Registered Authentication
Agent for unix-process:26978:25862142 (system bus name :1.82
[/usr/bin/pkttyagent --notify-fd 5 --fallback], object path
/org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_GB.UTF-8)
Sep 08 15:19:32 myhost.mydomain run.sh[26983]: Starting Freenet.... done
Sep 08 15:19:32 myhost.mydomain sudo[26977]: pam_unix(sudo:session):
session closed for user root
Sep 08 15:19:32 myhost.mydomain systemd[1]: Started Freenet.
-- Subject: Unit freenet.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit freenet.service has finished starting up.
--
-- The start-up result is done.
Sep 08 15:19:32 myhost.mydomain polkitd[553]: Unregistered Authentication
Agent for unix-process:26978:25862142 (system bus name :1.82, object path
/org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_GB.UTF-8)
(disconnected from bus)
Sep 08 15:19:33 myhost.mydomain systemd[1]: freenet.service: Main process
exited, code=exited, status=1/FAILURE
Sep 08 15:19:33 myhost.mydomain run.sh[27031]: Freenet is not running.
Sep 08 15:19:33 myhost.mydomain systemd[1]: freenet.service: Unit entered
failed state.
Sep 08 15:19:33 myhost.mydomain systemd[1]: freenet.service: Failed with
result 'exit-code'.
_______________________________________________
Support mailing list
Support@freenetproject.org
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-requ...@freenetproject.org?subject=unsubscribe

Reply via email to