polkit: redirect stdout/err to /dev/null in systemd service, too noisy.
This commit is contained in:
parent
599343f17e
commit
5d80e68fae
|
@ -0,0 +1,7 @@
|
|||
auth requisite pam_nologin.so
|
||||
auth required pam_env.so
|
||||
auth required pam_unix.so
|
||||
account required pam_unix.so
|
||||
session required pam_limits.so
|
||||
session required pam_unix.so
|
||||
password required pam_unix.so
|
|
@ -6,7 +6,8 @@ After=syslog.target
|
|||
Type=dbus
|
||||
BusName=org.freedesktop.PolicyKit1
|
||||
ExecStart=/usr/libexec/polkitd
|
||||
StandardOutput=syslog
|
||||
StandardOutput=null
|
||||
StandardError=null
|
||||
|
||||
[Install]
|
||||
# We pull this in by graphical.target instead of waiting for the bus
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'polkit'
|
||||
pkgname=polkit
|
||||
version=0.102
|
||||
revision=1
|
||||
revision=2
|
||||
distfiles="http://hal.freedesktop.org/releases/$pkgname-$version.tar.gz"
|
||||
build_style=gnu_configure
|
||||
configure_args="--disable-static --localstatedir=/var --with-os-type=gentoo"
|
||||
|
@ -38,16 +38,6 @@ Add_dependency build pam-devel
|
|||
|
||||
post_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/etc/pam.d
|
||||
cat > ${DESTDIR}/etc/pam.d/polkit-1 <<_EOF
|
||||
auth requisite pam_nologin.so
|
||||
auth required pam_env.so
|
||||
auth required pam_unix.so
|
||||
account required pam_unix.so
|
||||
session required pam_limits.so
|
||||
session required pam_unix.so
|
||||
password required pam_unix.so
|
||||
_EOF
|
||||
chmod 644 ${DESTDIR}/etc/pam.d/polkit-1
|
||||
vinstall ${FILESDIR}/polkit-1.pam 644 etc/pam.d polkit-1
|
||||
vinstall ${FILESDIR}/polkitd.service 644 lib/systemd/system
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue