dotfiles

configuration files
git clone https://pi.duncano.de/git/dotfiles.git
Log | Files | Refs | README

commit 776ee157ef481fa47385a6c88b29cc1653475acc
parent d432b08cd6a0c2f35b3e19b55ed4f2a197027b82
Author: Duncaen <mail@duncano.de>
Date:   Thu,  9 Jul 2015 10:18:59 +0200

add runsvdir-duncan service

Diffstat:
sv/runsvdir-duncan/env/HOME | 1+
sv/runsvdir-duncan/env/LOGNAME | 1+
sv/runsvdir-duncan/env/SHELL | 1+
sv/runsvdir-duncan/env/USER | 1+
sv/runsvdir-duncan/finish | 4++++
sv/runsvdir-duncan/run | 5+++++
6 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/sv/runsvdir-duncan/env/HOME b/sv/runsvdir-duncan/env/HOME @@ -0,0 +1 @@ +/home/duncan diff --git a/sv/runsvdir-duncan/env/LOGNAME b/sv/runsvdir-duncan/env/LOGNAME @@ -0,0 +1 @@ +duncan diff --git a/sv/runsvdir-duncan/env/SHELL b/sv/runsvdir-duncan/env/SHELL @@ -0,0 +1 @@ +/usr/bin/mksh diff --git a/sv/runsvdir-duncan/env/USER b/sv/runsvdir-duncan/env/USER @@ -0,0 +1 @@ +duncan diff --git a/sv/runsvdir-duncan/finish b/sv/runsvdir-duncan/finish @@ -0,0 +1,4 @@ +#!/bin/sh + +sv -w600 force-stop /home/duncan/service/* +sv exit /home/duncan/service/* diff --git a/sv/runsvdir-duncan/run b/sv/runsvdir-duncan/run @@ -0,0 +1,5 @@ +#!/bin/sh + +exec 2>&1 +# exec chpst -u duncan -e ./env runsvdir /home/duncan/service +exec su -l -c "exec runsvdir /home/duncan/service" duncan