sysmgr

a simplistic service supervisor (deprecated)
git clone git://git.ckyln.com/~cem/sysmgr.git
Log | Files | Refs | README | LICENSE

commit 52b0bfb792d80c9b9d25eb5af91e130847997dc0
parent 36ed192b7d3dedcc70c46b8bb7b5cf7f0583bd68
Author: Cem Keylan <cem@ckyln.com>
Date:   Wed, 16 Sep 2020 20:27:50 +0300

sysmgr-needs: use basename() for usage

Diffstat:
Mutils/sysmgr-needs.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/utils/sysmgr-needs.c b/utils/sysmgr-needs.c @@ -4,6 +4,7 @@ #include <unistd.h> #include <stdlib.h> #include <stdio.h> +#include <libgen.h> #include "util.h" @@ -11,7 +12,7 @@ int main(int argc, char *argv[]) { if (argc < 2) { - printf("usage: %s [service...]\n", argv[0]); + printf("usage: %s [service...]\n", basename(argv[0])); return 1; }