Timeline for Small bash script to start and stop named services
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 3, 2017 at 4:35 | vote | accept | Prahlad Yeri | ||
Apr 13, 2017 at 12:40 | history | edited | CommunityBot |
replaced http://codereview.stackexchange.com/ with https://codereview.stackexchange.com/
|
|
Apr 13, 2017 at 12:25 | history | edited | CommunityBot |
replaced http://askubuntu.com/ with https://askubuntu.com/
|
|
Mar 28, 2016 at 16:42 | comment | added | janos |
@mynameismevin you mean, replacing servicenames in my version with $2 ? Not so easy: there can be multiple service names there, $3 , $4 , ... Or there might be none at all. So I improved it, to handle all those cases. By the way, avoid flags of echo such as -e , it's not portable. (In the example you gave, it has no purpose anyway.)
|
|
Mar 28, 2016 at 16:39 | history | edited | janos | CC BY-SA 3.0 |
added 89 characters in body
|
Mar 28, 2016 at 16:27 | comment | added | Sienna |
This is definitely the better implementation, it leaves more room for extensibility; would you want *) echo -e "usage: $0 [start|stop|restart] $2"; exit 1 instead?
|
|
Jan 10, 2015 at 17:26 | history | edited | janos | CC BY-SA 3.0 |
deleted 36 characters in body
|
Jul 25, 2014 at 19:33 | history | edited | janos | CC BY-SA 3.0 |
deleted 19 characters in body
|
Jul 23, 2014 at 21:40 | history | edited | janos | CC BY-SA 3.0 |
added 1 character in body
|
Jul 6, 2014 at 9:50 | history | answered | janos | CC BY-SA 3.0 |