In this article
Using Task Scheduler to auto-start the Relay is an optional step to run the .exe when the server reboots.
🚨 Important: Without the task schedule, the Relay requires a manual restart.
Add this task schedule while deploying DNS Relay or at anytime after deployment.
Follow these steps to setup the task schedule.
- From the Windows device, navigate to the Start menu and open Task Scheduler
- From the Actions pane, select Create Task
- Configure the Task's General Settings:
- Name: Enter a name for the Task
- Description: Add a description for clarity
- Security Options: Select Run whether user is logged on or not
- Privilege: Run the Task with the highest privilege
- Set the Trigger:
- Navigate to the Triggers tab and select New
- Begin the task: Select At startup
- Set the Action:
- Navigate to the Actions tab and select New
- Action: Select Start a program
- Program/script: Select Browse and select the Relay's .exe file
Example Start a program path
In the Actions tab of Task Scheduler, after selecting Start a program, enter the full path to the DNSFilter Relay executable in the Program/script field.
Then, in the Add arguments (optional) field, specify the path to the config file as a command-line argument.
For example, if the config file is named dnsfilter_relay.conf and located at C:\Path\To\Your\Config\, enter:
-c "C:\Path\To\Your\Config\dnsfilter_relay.conf"
This tells the executable to use this specific config file when it runs. Make sure both the executable and config file paths are correct and use quotes if the path contains spaces.
The Relay is now scheduled to start on system startup.
Comments
0 comments
Please sign in to leave a comment.