Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#15693 - [keytouch] quiet daemon script

Attached to Project: Arch Linux
Opened by Eric Belanger (Snowman) - Monday, 27 July 2009, 01:06 GMT
Last edited by Eric Belanger (Snowman) - Saturday, 17 October 2009, 20:47 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Eric Belanger (Snowman)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Add some &>/dev/null to quiet

/usr/bin/keytouch-init
/usr/bin/keytouch-acpid

This task depends upon

Closed by  Eric Belanger (Snowman)
Saturday, 17 October 2009, 20:47 GMT
Reason for closing:  Fixed
Additional comments about closing:  keytouch-2.4.1-2
Comment by Eric Belanger (Snowman) - Sunday, 04 October 2009, 08:27 GMT
#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions

PID=$(pidof -o %PPID /usr/bin/keytouch-acpid)
case "$1" in
start)
stat_busy "Starting keyTouch Daemon"
if [ -x /etc/rc.d/acpid ]; then
ck_daemon acpid && /etc/rc.d/acpid start
fi
/usr/bin/keytouch-init
[ -z "$PID" ] && /usr/bin/keytouch-acpid &
if [ $? -gt 0 ]; then
stat_fail
else
add_daemon keytouch
stat_done
fi
;;
stop)
stat_busy "Stopping keyTouch Daemon"
[ ! -z "$PID" ] && kill "$PID" &>/dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon keytouch
stat_done
fi
;;
restart)
$0 stop
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0

Loading...