You are not logged in.

#1 2013-11-27 01:14:34

wilberfan
Member
From: So. Cal
Registered: 2010-12-18
Posts: 264

[SOLVED] systemd & sabnzbd weirdness

My SABnzbd service starts and runs fine--but I can't stop it, restart it or check it's status via systemctl:

Here it is running: http://img7.imageshack.us/img7/6673/5f48.png

But here's what happens when I try and check it's status:

$ systemctl --user status sabnzbd
Failed to issue method call: Process /bin/false exited with status 1
[wilberfan@arch32 ~]$ systemctl status sabnzbd
sabnzbd.service - SABnzbd binary newsreader
   Loaded: loaded (/etc/systemd/system/sabnzbd.service; disabled)
   Active: inactive (dead)

I've read that that "/bin/fase exited with status 1" means that systemd is NOT running as --user, but as far as I can tell, it is:

http://img31.imageshack.us/img31/2508/gkgy.png

So, any idea what's going on?  What am I missing here??



-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

Last edited by wilberfan (2013-11-27 18:18:33)


Hey, be nice...I'm new at this!

Offline

#2 2013-11-27 18:18:07

wilberfan
Member
From: So. Cal
Registered: 2010-12-18
Posts: 264

Re: [SOLVED] systemd & sabnzbd weirdness

Well, it turns out systemd was not running as user--at least not properly.

I didn't see this as I updated my systemd (from the wiki)

Note:
Since version 207, systemd uses a different PAM module for user@.service, and includes an incorrect default PAM config. Fix it with: # sed -i s/system-auth/system-login/g /etc/pam.d/systemd-user (or replace all occurrences of system-auth in that file with system-login).
system-login needs to start pam_systemd: it should contain -session optional pam_systemd.so; check if a .pacnew file exists.

Running that sed command fixed the problem.

$ systemctl --user status sabnzbd
sabnzbd.service - SABnzbd binary newsreader
   Loaded: loaded (/etc/systemd/user/sabnzbd.service; enabled)
   Active: active (running) since Wed 2013-11-27 10:17:08 PST; 5s ago
  Process: 1730 ExecStop=/usr/bin/curl -f ${SABNZBD_PROTOCOL}://${SABNZBD_USPW}${SABNZBD_IP}:${SABNZBD_PORT}/sabnzbd/api?mode=shutdown&apikey=${SABNZBD_KEY} (code=exited, status=0/SUCCESS)
  Process: 1822 ExecStart=/bin/sh/ -c python2 ${SABNZBD_DIR}/SABnzbd.py ${SABNZBD_ARGS} --pid /tmp (code=exited, status=0/SUCCESS)
 Main PID: 1827 (python2)
   CGroup: /user.slice/user-1000.slice/user@1000.service/sabnzbd.service
           └─1827 python2 /opt/sabnzbd/SABnzbd.py -f /home/wilberfan/.sabnzbd...

Nov 27 10:17:06 arch32 systemd[589]: Starting SABnzbd binary newsreader...
Nov 27 10:17:07 arch32 systemd[589]: PID file /tmp/sabnzbd-8080.pid not rea...t.
Nov 27 10:17:08 arch32 systemd[589]: Started SABnzbd binary newsreader.
Hint: Some lines were ellipsized, use -l to show in full.

[Aside to moderator:  Sorry 'bout not using thumbnails in OP!]


Hey, be nice...I'm new at this!

Offline

Board footer

Powered by FluxBB