Last active
August 29, 2015 14:16
-
-
Save gdoteof/c8655b0c1c3445ea3740 to your computer and use it in GitHub Desktop.
template test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
core@ztest01 ~ $ fleetctl load tst@1.service
^Ccore@ztest01 ~ $ fleetctl status tst@1.service
Unit tst@1.service 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
tst@.service e765ab1 inactive inactive -
tst@1.service e765ab1 loaded inactive 96fb30af.../10.132.114.122
core@ztest01 ~ $ fleetctl status tst@1.service
Unit tst@1.service does not appear to be loaded.