summaryrefslogtreecommitdiff
path: root/sys-cluster/torque/files/trqauthd-init.d
blob: 46565f655e49047303b51c314eb45216ac602d43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/sbin/openrc-run
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

depend() {
    need net
    after logger

    # 4.0+ only, make sure we run before the other torque services
    before pbs_mom
    before pbs_sched
    before pbs_server
}

start() {
    start-stop-daemon \
        --start \
        --exec /usr/sbin/trqauthd
}

stop() {
    start-stop-daemon \
        --stop \
        --exec /usr/sbin/trqauthd
}