#!/bin/sh service=$(basename $(pwd)) tty=${service/*-} exec utmpset -w $tty