Cross Reference: svc-consolekit
xref
: /
solaris-userland
/
components
/
desktop
/
consolekit
/
files
/
svc-consolekit
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
7329
N/A
#!/
sbin
/
sh
7329
N/A
#
7329
N/A
# Copyright 2011, 2016, Oracle
and
/
or
its affiliates. All rights reserved.
7329
N/A
#
7329
N/A
7329
N/A
. /
lib
/
svc
/
share
/
smf_include.sh
7329
N/A
7329
N/A
case
"$1"
in
7329
N/A
'start'
)
7329
N/A
FMRI
=
svc
:/
system
/
consolekit
7329
N/A
7329
N/A
arg
=
`
eval
"echo \`svcprop -p
consolekit
/
args
$FMRI
\`"
`
7329
N/A
7329
N/A
SEATFILE
=/
etc
/
ConsoleKit
/
seats.d
/
00-primary.seat
7329
N/A
7329
N/A
rep
=
`
eval
"echo \`svcprop -p
consolekit
/
sessions
$FMRI
\`"
`
7329
N/A
7329
N/A
curline
=
`
sed
-n
"/Sessions=/p"
$SEATFILE
`
7329
N/A
cur
=
`
expr
$curline
:
"Sessions=\(.*\);"
`
7329
N/A
7329
N/A
if
[[
$cur
!=
$rep
]];
then
7329
N/A
/
usr
/
bin
/
ex
$SEATFILE
<< EOF
7329
N/A
/$curline
7329
N/A
s/$curline/Sessions=$rep;/
7329
N/A
w
7329
N/A
q
7329
N/A
EOF
7329
N/A
fi
7329
N/A
7329
N/A
/
usr
/
sbin
/
console-kit-daemon
$arg
7329
N/A
7329
N/A
rc
=$?
7329
N/A
if
[
$rc
-
ne
0
];
then
7329
N/A
echo
"$0: consolekit failed with
$rc
"
7329
N/A
exit
$SMF_EXIT_ERR_FATAL
7329
N/A
fi
7329
N/A
;;
7329
N/A
7329
N/A
*)
7329
N/A
echo
"Usage: $0 { start }"
7329
N/A
exit
$SMF_EXIT_ERR_FATAL
7329
N/A
;;
7329
N/A
esac
7329
N/A
7329
N/A
exit
$SMF_EXIT_OK