Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 391708 Details for
Bug 462920
dev-perl/Mail-SRS - please provide init script
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
srsd.init.d
srsd.init (text/plain), 1.17 KB, created by
Patrice Clement
on 2014-12-14 16:31:34 UTC
(
hide
)
Description:
srsd.init.d
Filename:
MIME Type:
Creator:
Patrice Clement
Created:
2014-12-14 16:31:34 UTC
Size:
1.17 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2014 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header$ > >pidfile="/var/run/srsd.pid" >command="/usr/bin/srsd" >command_args="${SRSD_OPTS}" > >depend() { > use logger >} > >start_pre() { > if [[ ! -z ${SRSD_SECRET_FILE} ]]; then > # check for secret file > checkpath --file --owner root:root --mode 0644 ${SRSD_SECRET_FILE} > > # srsd complains if the secret file is empty > # check for characters in it > grep -q '.' ${SRSD_SECRET_FILE} > > # grep returns 0 if a match has been found > # 1 otherwise > local retval=$? > if [[ $retval -ne 0 ]]; then > eerror "Secret file \"${SRSD_SECRET_FILE}\" must NOT be empty." > return 1 > fi > fi > > return 0 >} > >start() { > ebegin 'Starting srsd' > start-stop-daemon \ > --start \ > --background \ > --pidfile ${pidfile} \ > --make-pidfile \ > --exec ${command} \ > -- ${command_args} > eend $? >} > >stop() { > ebegin 'Stopping srsd' > start-stop-daemon \ > --stop \ > --pidfile ${pidfile} \ > --exec ${command} > eend $? >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 462920
:
391650
|
391652
|
391706
| 391708 |
391710