Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 698544 - net-libs/courier-authlib systemd unit exec syntax invalid
Summary: net-libs/courier-authlib systemd unit exec syntax invalid
Status: RESOLVED DUPLICATE of bug 689648
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-10-25 18:50 UTC by Michael Crawford (ali3nx)
Modified: 2019-10-25 22:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
courier-authdaemond-r2.service.patch (courier-authdaemond-r2.service.patch,790 bytes, patch)
2019-10-25 18:52 UTC, Michael Crawford (ali3nx)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Crawford (ali3nx) 2019-10-25 18:50:25 UTC
courier-authlib systemd service unit exec path is invalid. last systemd service unit file update was the initial commit and ~4 years ago

reproducible at least on amd64/17.1 profile

Reproducible: Always

Steps to Reproduce:
1. configure and attempt to start courier-authdaemond.service
2. systemd service fails to start due to he scripted authdaemond path being  invalid

Bug 689648 could be merged with this bug and the ebuilds for net-mail/courier-imap corrected to install the systemd service with the correct package



emerge --info

 emerge --info
Portage 2.3.76 (python 3.6.9-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-8.3.0, glibc-2.29-r2, 4.19.66-gentoo x86_64)
=================================================================
System uname: Linux-4.19.66-gentoo-x86_64-Intel-R-_Core-TM-_i5-6600K_CPU_@_3.50GHz-with-gentoo-2.6
KiB Mem:    32878820 total,   9412028 free
KiB Swap:   41943036 total,  41943036 free
Timestamp of repository gentoo: Fri, 25 Oct 2019 02:45:01 +0000
Head commit of repository gentoo: 9ce861fb487ea876ea2b732902dfe78e608d41fb
Head commit of repository steam-overlay: 5b099b835b5b8dc7f37390e37e44cebba7cc315d

Head commit of repository usenet-overlay: c7070b2a5201a4799f77749ca1a2fcdba3e85578

sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo
dev-util/cmake:           3.14.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync11.us.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:

steam-overlay
    location: /usr/local/portage/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

usenet-overlay
    location: /usr/local/portage/usenet-overlay
    sync-type: git
    sync-uri: https://github.com/xartin/gentoo-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --complete-graph y"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -mtune=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -mtune=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
Comment 1 Michael Crawford (ali3nx) 2019-10-25 18:52:51 UTC
Created attachment 593956 [details, diff]
courier-authdaemond-r2.service.patch

service unit patch tested and functional.

also updated the pidfile path to the correct directory desired for systemd service units.

systemctl status courier-authdaemond.service
● courier-authdaemond.service - Courier Authentification Daemon
   Loaded: loaded (/lib/systemd/system/courier-authdaemond.service; disabled; vendor preset: disabled)
   Active: active (running) since Fri 2019-10-25 13:29:27 CDT; 6s ago
  Process: 5776 ExecStart=/usr/sbin/courierlogger -pid=/run/authdaemon.pid -start /usr/libexec/courier-authlib/authdaemond (code=exited, status=0/SUCCESS)
 Main PID: 5778 (courierlogger)
    Tasks: 7 (limit: 4915)
   Memory: 2.2M
   CGroup: /system.slice/courier-authdaemond.service
           ├─5778 /usr/sbin/courierlogger -pid=/run/authdaemon.pid -start /usr/libexec/courier-authlib/authdaemond
           ├─5779 /usr/libexec/courier-authlib/authdaemond
           ├─5780 /usr/libexec/courier-authlib/authdaemond
           ├─5781 /usr/libexec/courier-authlib/authdaemond
           ├─5782 /usr/libexec/courier-authlib/authdaemond
           ├─5783 /usr/libexec/courier-authlib/authdaemond
           └─5784 /usr/libexec/courier-authlib/authdaemond

Oct 25 13:29:27 fenrir systemd[1]: Starting Courier Authentification Daemon...
Oct 25 13:29:27 fenrir systemd[1]: Started Courier Authentification Daemon.
Oct 25 13:29:27 fenrir authdaemond[5778]: modules="authpgsql", daemons=5
Oct 25 13:29:27 fenrir authdaemond[5778]: Installing libauthpgsql
Oct 25 13:29:27 fenrir authdaemond[5778]: Installation complete: authpgsql
Comment 2 Michael Crawford (ali3nx) 2019-10-25 18:55:17 UTC
equery file list confirming the daemon file path was invalid

equery f courier-authlib
 * Searching for courier-authlib ...
 * Contents of net-libs/courier-authlib-0.69.0-r1:
/etc
/etc/courier
/etc/courier/authlib
/etc/courier/authlib/.keep_net-libs_courier-authlib-0
/etc/courier/authlib/authdaemonrc
/etc/courier/authlib/authdaemonrc.dist
/etc/courier/authlib/authpgsqlrc
/etc/courier/authlib/authpgsqlrc.dist
/etc/init.d
/etc/init.d/courier-authlib
/usr
/usr/bin
/usr/bin/courierauthconfig
/usr/include
/usr/include/courier_auth_config.h
/usr/include/courierauth.h
/usr/include/courierauthdebug.h
/usr/include/courierauthsasl.h
/usr/include/courierauthsaslclient.h
/usr/include/courierauthstaticlist.h
/usr/lib64
/usr/lib64/courier-authlib
/usr/lib64/courier-authlib/libauthcustom.la
/usr/lib64/courier-authlib/libauthcustom.so
/usr/lib64/courier-authlib/libauthpgsql.la
/usr/lib64/courier-authlib/libauthpgsql.so
/usr/lib64/courier-authlib/libauthpipe.la
/usr/lib64/courier-authlib/libauthpipe.so
/usr/lib64/courier-authlib/libauthpwd.la
/usr/lib64/courier-authlib/libauthpwd.so
/usr/lib64/courier-authlib/libauthshadow.la
/usr/lib64/courier-authlib/libauthshadow.so
/usr/lib64/courier-authlib/libauthuserdb.la
/usr/lib64/courier-authlib/libauthuserdb.so
/usr/lib64/courier-authlib/libcourierauth.la
/usr/lib64/courier-authlib/libcourierauth.so
/usr/lib64/courier-authlib/libcourierauthcommon.la
/usr/lib64/courier-authlib/libcourierauthcommon.so
/usr/lib64/courier-authlib/libcourierauthsasl.la
/usr/lib64/courier-authlib/libcourierauthsasl.so
/usr/lib64/courier-authlib/libcourierauthsaslclient.la
/usr/lib64/courier-authlib/libcourierauthsaslclient.so
/usr/libexec
/usr/libexec/courier-authlib
/usr/libexec/courier-authlib/authdaemond
/usr/libexec/courier-authlib/authsystem.passwd
/usr/libexec/courier-authlib/makedatprog
/usr/sbin
/usr/sbin/authdaemond
/usr/sbin/authenumerate
/usr/sbin/authpasswd
/usr/sbin/authtest
/usr/sbin/courierlogger
/usr/sbin/makeuserdb
/usr/sbin/pw2userdb
/usr/sbin/userdb
/usr/sbin/userdb-test-cram-md5
/usr/sbin/userdbpw
/usr/share
/usr/share/doc
/usr/share/doc/courier-authlib-0.69.0-r1
/usr/share/doc/courier-authlib-0.69.0-r1/AUTHORS.bz2
/usr/share/doc/courier-authlib-0.69.0-r1/ChangeLog.bz2
/usr/share/doc/courier-authlib-0.69.0-r1/INSTALL.bz2
/usr/share/doc/courier-authlib-0.69.0-r1/NEWS.bz2
/usr/share/doc/courier-authlib-0.69.0-r1/README.bz2
/usr/share/doc/courier-authlib-0.69.0-r1/html
/usr/share/doc/courier-authlib-0.69.0-r1/html/INSTALL.html
/usr/share/doc/courier-authlib-0.69.0-r1/html/NEWS.html
/usr/share/doc/courier-authlib-0.69.0-r1/html/README.authdebug.html
/usr/share/doc/courier-authlib-0.69.0-r1/html/README.authmysql.html
/usr/share/doc/courier-authlib-0.69.0-r1/html/README.authpostgres.html
/usr/share/doc/courier-authlib-0.69.0-r1/html/README.html
/usr/share/doc/courier-authlib-0.69.0-r1/html/README_authlib.html
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/authpasswd.1.bz2
/usr/share/man/man1/authtest.1.bz2
/usr/share/man/man1/courierlogger.1.bz2
/usr/share/man/man3
/usr/share/man/man3/auth_enumerate.3.bz2
/usr/share/man/man3/auth_generic.3.bz2
/usr/share/man/man3/auth_getoption.3.bz2
/usr/share/man/man3/auth_getuserinfo.3.bz2
/usr/share/man/man3/auth_login.3.bz2
/usr/share/man/man3/auth_mkhomedir.3.bz2
/usr/share/man/man3/auth_passwd.3.bz2
/usr/share/man/man3/auth_sasl.3.bz2
/usr/share/man/man3/auth_sasl_ex.3.bz2
/usr/share/man/man3/authlib.3.bz2
/usr/share/man/man8
/usr/share/man/man8/makeuserdb.8.bz2
/usr/share/man/man8/pw2userdb.8
/usr/share/man/man8/userdb.8.bz2
/usr/share/man/man8/userdbpw.8.bz2
/var
/var/lib
/var/lib/courier
/var/lib/courier/authdaemon
/var/lib/courier/authdaemon/.keep_net-libs_courier-authlib-0
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2019-10-25 22:25:25 UTC

*** This bug has been marked as a duplicate of bug 689648 ***