Hello,
I've been trying to get a python discord bot I wrote for me and my friends running on jail startup for a few days now. I feel like every link is purple at the moment and linking lengthy paragraphs of documentation from before I was born DOES NOT help. Where I am now:
/etc/rc.d/discord_bot:
I've been trying to get a python discord bot I wrote for me and my friends running on jail startup for a few days now. I feel like every link is purple at the moment and linking lengthy paragraphs of documentation from before I was born DOES NOT help. Where I am now:
- bot pulled from github, dependencies installed. manual startup is 100% working
- executable rc script created: /etc/rc.d/disord_bot
- rc config calling rc script on startup
- a unrelated debug command inside the rc script works (printing the date to a file), but the python script will not start
/etc/rc.d/discord_bot:
Code:
#!/bin/sh # PROVIDE: discord_bot . /etc/rc.subr name="discord_bot" rcvar="${name}_enable" start_cmd="${name}_start" stop_cmd=":" discord_bot_start() { date > /my_out.log # WORKS! nohup /usr/local/bin/python /discord_polling_bot/bot.py & # works from a user terminal, but not in here } load_rc_config $name run_rc_command "$1"