Skip to content

Instantly share code, notes, and snippets.

@gdoteof
Last active August 29, 2015 14:16
Show Gist options
  • Save gdoteof/c8655b0c1c3445ea3740 to your computer and use it in GitHub Desktop.
Save gdoteof/c8655b0c1c3445ea3740 to your computer and use it in GitHub Desktop.
template test
[Unit]
Description=testthing
# Requirements
Requires=etcd.service
# Dependency ordering and binding
After=etcd.service
[Service]
# Get CoreOS environmental variables
EnvironmentFile=/etc/environment
ExecStart=/bin/bash -c '\
while true; do \
echo hi; \
sleep 5; \
done'
# Stop
ExecStop=/usr/bin/etcdctl rm /services/test/%i
@gdoteof
Copy link
Author

gdoteof commented Mar 3, 2015

core@ztest01 ~ $ fleetctl load [email protected]

^Ccore@ztest01 ~ $ fleetctl status [email protected]
Unit [email protected] does not appear to be loaded.
core@ztest01 ~ $ fleetctl list-unit-files
UNIT HASH DSTATE STATE TARGET
test.service 4e97606 launched launched 96fb30af.../10.132.114.122
[email protected] e765ab1 inactive inactive -
[email protected] e765ab1 loaded inactive 96fb30af.../10.132.114.122
core@ztest01 ~ $ fleetctl status [email protected]
Unit [email protected] does not appear to be loaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment