Windows autostart docs #4081
Labels
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Mrcoolgamer11/Red-DiscordBot!4081
Loading…
Reference in a new issue
No description provided.
Delete branch "V3/docs/win_autostart"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Description of the changes
Supersedes #2726
@ -0,0 +1,104 @@.. windows service guideI'm thinking
might work here but I need to test it
@ -0,0 +1,104 @@.. windows service guideSame as the
Read-Host -AsSecureString,$c.Passwordis also a secure string which sadly requires doing something like this:to get the actual raw string
I guess we will just have to call the solution I posted above as good enough then.
Hello. I'm actually having trouble using these instructions. The service never starts completely, it pauses during the process, so I'm getting the following error:
redbot: Unexpected status SERVICE_PAUSED in response to START control.I'm executing PowerShell as Administrator, and tried using both the Windows default one and the PowerShell 7 Preview. I know I should wait until this pull is done, but maybe it would serve as a "What to do when..." answer for the guide. Thanks in advance.
P.S.: I had to use "" for my password since it uses special characters (#). And I tried using @jack1142 prompt too.
@Lmmb74
nssm dumpshould show more information that might be helpful to solve this issue. I'm not sure whether it's that good idea to ask for help here though, might be better to do it in our discord server (even though it's still not officially supported)Here is the dump. Also, I asked for help in Discord and I was given a solution involving a batch file.
Solved this in Discord server. The issue wasn't related to nssm instructions - Red simply wasn't installed in the venv.
While it might be worth to mention that Event Viewer can be helpful for debugging issues like "Unexpected status SERVICE_PAUSED in response to START control.", I wouldn't consider it essential for this PR.
Wouldn't it be preferable to use the built in task scheduler to auto run the bot? It reduces the amount of bloat the user needs to install onto their system, while also being generally more reliable since it's a core feature of the operating system.
Went with the longer option for password handling
Superseded by #5996.
Pull request closed