Skip to content

Commit ef3b205

Browse files
committed
update init scripts for bsd
deliberately specifying 2.7 since this is the minimum version and solves issue with python being a symlink to 3.x. Also, this will make it FreeBSD10 compat, as the FBSD10 pkg does not create the versionless symlink
1 parent 72d0d17 commit ef3b205

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

init/minecraft.bsd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ stop_cmd="${name}_stop"
2222
minecraft_start()
2323
{
2424
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:
25-
cd /usr/local/games/minecraft && /usr/local/bin/python mineos_console.py -d /var/games/minecraft restore
26-
cd /usr/local/games/minecraft && /usr/local/bin/python mineos_console.py -d /var/games/minecraft start
25+
cd /usr/local/games/minecraft && /usr/local/bin/python2.7 mineos_console.py -d /var/games/minecraft restore
26+
cd /usr/local/games/minecraft && /usr/local/bin/python2.7 mineos_console.py -d /var/games/minecraft start
2727
}
2828

2929
minecraft_stop()
3030
{
3131
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:
32-
cd /usr/local/games/minecraft && /usr/local/bin/python mineos_console.py -d /var/games/minecraft stop
32+
cd /usr/local/games/minecraft && /usr/local/bin/python2.7 mineos_console.py -d /var/games/minecraft stop
3333
}
3434

3535
# read configuration and set defaults

init/mineos.bsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export PATH=$PATH:/usr/local/bin
1717
name=mineos
1818
rcvar=mineos_enable
1919

20-
command="/usr/local/bin/python"
20+
command="/usr/local/bin/python2.7"
2121
command_args="/usr/local/games/minecraft/server.py -c /usr/local/etc/mineos.conf"
2222
pidfile="/var/run/mineos.pid"
2323

0 commit comments

Comments
 (0)