Add nssm scripts

This commit is contained in:
2025-10-06 13:43:19 +02:00
parent eb4f715ce3
commit 92ea0b43d0
2 changed files with 10 additions and 0 deletions

9
downloader/nssm.sh Normal file
View File

@@ -0,0 +1,9 @@
nssm install YoutubeDownloader 'C:\Users\Administrator\Seafile\Projects-Go\GoProjects\youtube-downloader\downloader\ytdl.exe'
nssm set YoutubeDownloader AppDirectory 'C:\Users\Administrator\Seafile\Projects-Go\GoProjects\youtube-downloader\downloader'
nssm set YoutubeDownloader AppExit Default Restart
nssm set YoutubeDownloader AppEnvironmentExtra :PATH='C:\Users\Administrator\scoop\shims'
nssm set YoutubeDownloader AppEnvironmentExtra +YTDL_DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/1360983696366112980/NEYWb9mc_E5-x3uCKoRkNBX-G3pyXH3YcXIf7YOZibdsGP10C-u0N32LQKuf5Hfu-hi7
nssm set YoutubeDownloader DisplayName YoutubeDownloader
nssm set YoutubeDownloader ObjectName LocalSystem
nssm set YoutubeDownloader Start SERVICE_AUTO_START
nssm set YoutubeDownloader Type SERVICE_WIN32_OWN_PROCESS

1
downloader/stop.sh Normal file
View File

@@ -0,0 +1 @@
nssm stop YoutubeDownloader