From f31103d1d8a1ea3506d590f1227ec49334692ddf Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Fri, 27 Jun 2025 18:22:29 +0200 Subject: [PATCH] Maybe add nssm --- .gitattributes | 1 + .gitignore | 1 + crontabd/crontabd.exe | 3 +++ crontabd/nssm.sh | 9 +++++++++ 4 files changed, 14 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 crontabd/crontabd.exe create mode 100644 crontabd/nssm.sh diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..5135af0 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.exe filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..397b4a7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.log diff --git a/crontabd/crontabd.exe b/crontabd/crontabd.exe new file mode 100644 index 0000000..f584093 --- /dev/null +++ b/crontabd/crontabd.exe @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:07372bec0b6132a557053598a10db61a38b6f2a53f6f6b43bb179e05195e26f5 +size 3502080 diff --git a/crontabd/nssm.sh b/crontabd/nssm.sh new file mode 100644 index 0000000..c03eef5 --- /dev/null +++ b/crontabd/nssm.sh @@ -0,0 +1,9 @@ +nssm install crontabd 'C:\Users\Administrator\Seafile\Projects-Go\GoProjects\crontab\crontabd\crontabd.exe' +nssm set crontabd AppDirectory 'C:\Users\Administrator\Seafile\Projects-Go\GoProjects\crontab\crontabd' +nssm set crontabd AppExit Default Restart +nssm set crontabd DisplayName crontabd +nssm set crontabd ObjectName LocalSystem +nssm set crontabd Start SERVICE_AUTO_START +nssm set crontabd Type SERVICE_WIN32_OWN_PROCESS +nssm set crontabd AppStdout 'C:\Users\Administrator\Seafile\Projects-Go\GoProjects\crontab\crontabd.log' +nssm set crontabd AppStderr 'C:\Users\Administrator\Seafile\Projects-Go\GoProjects\crontab\crontabd.log' \ No newline at end of file