mirror of
https://github.com/troglobit/finit.git
synced 2026-10-29 12:40:44 +00:00
Change syntax for multiple instances: #ID --> :ID
Turns out that #ID syntax for multiple instances, introduced in cb07556,
was very cumbersome to reference from the shell command line in the new
Finit client. This patch changes the syntax from #ID to :ID, which also
means that listing services/jobs in the shell will look like JOB:ID.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
534979e6c7
commit
720324b256
3 files changed
+14
-17
No files matched your search
+4
-7
@@ -1,8 +1,5 @@
|
||||
# Sample finit.conf to demonstatre the syntax
|
||||
# Sample finit.conf to demonstrate the syntax
|
||||
#
|
||||
# Comments are lines that start with #, comments are only allowed
|
||||
# on separate lines. The # sign is used inside service/run/task
|
||||
# stanzas to denote instance ID, see below.
|
||||
user admin
|
||||
host testbed
|
||||
|
||||
@@ -46,8 +43,8 @@ inetd time/tcp nowait [2345] internal -- UNIX rdate servic
|
||||
inetd ssh@eth0:222/tcp nowait [2345] /usr/sbin/sshd -i -- SSH service
|
||||
inetd ssh/tcp nowait [2345] /usr/sbin/sshd -i -- SSH service
|
||||
|
||||
# For multiple instances of the same service, add #ID somewhere between
|
||||
# For multiple instances of the same service, add :ID somewhere between
|
||||
# the service/run/task keyword and the command.
|
||||
service #1 [2345] /sbin/httpd -f -h /http -p 80 -- Web server
|
||||
service #2 [2345] /sbin/httpd -f -h /http -p 8080 -- Old web server
|
||||
service :1 [2345] /sbin/httpd -f -h /http -p 80 -- Web server
|
||||
service :2 [2345] /sbin/httpd -f -h /http -p 8080 -- Old web server
|
||||
|
||||
Reference in new issue
Block a user