Lines 1-4
Link Here
|
1 |
# $FreeBSD: head/sysutils/tuptime/files/tuptime.in 480685 2018-09-25 16:25:43Z fernape $ |
1 |
# $FreeBSD$ |
2 |
#!/bin/sh |
2 |
#!/bin/sh |
3 |
# |
3 |
# |
4 |
# PROVIDE: tuptime |
4 |
# PROVIDE: tuptime |
Lines 18-24
Link Here
|
18 |
|
18 |
|
19 |
tuptime_start() |
19 |
tuptime_start() |
20 |
{ |
20 |
{ |
|
|
21 |
echo "Starting $name." |
21 |
command_args="-x" |
22 |
command_args="-x" |
|
|
23 |
|
22 |
if /usr/sbin/pw usershow "${tuptime_user}" >/dev/null 2>&1; then |
24 |
if /usr/sbin/pw usershow "${tuptime_user}" >/dev/null 2>&1; then |
23 |
su -m ${tuptime_user} -c "$name $command_args" |
25 |
su -m ${tuptime_user} -c "$name $command_args" |
24 |
else |
26 |
else |
Lines 28-34
Link Here
|
28 |
|
30 |
|
29 |
tuptime_stop() |
31 |
tuptime_stop() |
30 |
{ |
32 |
{ |
|
|
33 |
echo "Stopping $name." |
31 |
command_args="-xg" |
34 |
command_args="-xg" |
|
|
35 |
|
32 |
if /usr/sbin/pw usershow "${tuptime_user}" >/dev/null 2>&1; then |
36 |
if /usr/sbin/pw usershow "${tuptime_user}" >/dev/null 2>&1; then |
33 |
su -m ${tuptime_user} -c "$name $command_args" |
37 |
su -m ${tuptime_user} -c "$name $command_args" |
34 |
else |
38 |
else |