[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #33483 [Internal Services/Tor Sysadmin Team]: Why did ZNC go down? How to prevent in future?
#33483: Why did ZNC go down? How to prevent in future?
-------------------------------------------------+-------------------------
Reporter: pastly | Owner: tpa
Type: defect | Status:
| needs_revision
Priority: Medium | Milestone:
Component: Internal Services/Tor Sysadmin Team | Version:
Severity: Normal | Resolution:
Keywords: | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
-------------------------------------------------+-------------------------
Comment (by pastly):
I've made the change:
{{{
ircbouncer@chives:~$ cat .config/systemd/user/znc.service
[Unit]
Description=ZNC IRC bouncer service
[Service]
Type=simple
ExecStart=/usr/bin/znc --foreground
[Install]
#WantedBy=multi-user.target
WantedBy=default.target
}}}
I also disable/enabled ZNC because it seemed like the right thing to do.
You said `multi-user.target` is the wrong thing to do, I noticed the
directory existed, and I suspected doing this would symlink to
`znc.service` from a different place. It did.
{{{
ircbouncer@chives:~$ systemctl --user disable znc
Removed /home/ircbouncer/.config/systemd/user/multi-
user.target.wants/znc.service.
ircbouncer@chives:~$ systemctl --user enable znc
Created symlink
/home/ircbouncer/.config/systemd/user/default.target.wants/znc.service →
/home/ircbouncer/.config/systemd/user/znc.service.
ircbouncer@chives:~$ ls -al .config/systemd/user/
total 16
drwxr-xr-x 3 ircbouncer ircbouncer 4096 Mar 4 00:42 .
drwxr-xr-x 3 ircbouncer ircbouncer 4096 Nov 20 15:13 ..
drwxr-xr-x 2 ircbouncer ircbouncer 4096 Mar 4 00:42 default.target.wants
-rw-r--r-- 1 ircbouncer ircbouncer 165 Mar 4 00:41 znc.service
}}}
So ... now we wait for the server to be rebooted again and see if it comes
back? :p
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/33483#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs