forked from Spark/ssm-services
kmscon is one of those scripts that need configs
This commit is contained in:
13
init.d/X
Executable file
13
init.d/X
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env watchman
|
||||
|
||||
service_username='fbt'
|
||||
export HOME="/home/${service_username}"
|
||||
service_workdir="$HOME"
|
||||
service_command='/bin/ssh-agent'
|
||||
service_args='/bin/xinit'
|
||||
|
||||
|
||||
start() {
|
||||
cd "$service_workdir"
|
||||
su "$service_username" -c "$BASH -l -c '${service_command} ${service_args}'" &>/tmp/xinit.log &
|
||||
}
|
Reference in New Issue
Block a user