ALT Linux Bugzilla
– Attachment 3767 Details for
Bug 21190
Добавить пример для работы демона под отдельным пользователем
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
Пример запуска из init-скрипта
transmission-daemon (text/plain), 1.31 KB, created by
serpiph
on 2009-08-22 22:59:21 MSD
(
hide
)
Description:
Пример запуска из init-скрипта
Filename:
MIME Type:
Creator:
serpiph
Created:
2009-08-22 22:59:21 MSD
Size:
1.31 KB
patch
obsolete
>#!/bin/sh ># ># transmission-daemon BitTorrent daemonized client ># ># chkconfig: - 90 10 ># description: transmission-daemon is \ ># BitTorrent daemonized client \ ># to download torrents from internet \ ># and to upload to internet. ># processname: transmission-daemon > ># Do not load RH compatibility interface. >WITHOUT_RC_COMPAT=1 > ># Source function library. >. /etc/init.d/functions > >PIDFILE=/var/run/transmission-daemon.pid >LOCKFILE=/var/lock/subsys/transmission-daemon >PROGRAM=/usr/bin/transmission-daemon >RETVAL=0 > >start() >{ > start_daemon --lockfile "$LOCKFILE" --set-user torrent --expect-user torrent -- "$PROGRAM" > RETVAL=$? > return $RETVAL >} > >stop() >{ > stop_daemon --lockfile "$LOCKFILE" --expect-user torrent -- "$PROGRAM" > RETVAL=$? ># rm -f "$PIDFILE" > return $RETVAL >} > >restart() >{ > stop > start >} > >reload() >{ > restart >} > ># See how we were called. >case "$1" in > start) > start > ;; > stop) > stop > ;; > reload) > reload > ;; > restart) > restart > ;; > condstop) > if [ -e "$LOCKFILE" ]; then > stop > fi > ;; > condrestart) > if [ -e "$LOCKFILE" ]; then > restart > fi > ;; > condreload) > if [ -e "$LOCKFILE" ]; then > reload > fi > ;; > status) > status --expect-user torrent -- "$PROGRAM" > RETVAL=$? > ;; > *) > msg_usage "${0##*/} {start|stop|reload|restart|condstop|condrestart|condreload|status}" > RETVAL=1 >esac > >exit $RETVAL
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 21190
: 3767