ssm-services/init.d/hostname

12 lines
207 B
Plaintext

#!/usr/bin/env watchman
if [[ -e "/etc/hostname" ]]; then
cfg_hostname="$(</etc/hostname)"
else
cfg_hostname='localhost'
fi
service_type='oneshot'
service_command='hostname'
service_args="$cfg_hostname"