[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
tip on updating rc.local on FreeBSD 2.2.8
****** message to minivend-users from Mark Stosberg <mark@summersault.com> ******
Hello!
I'm working on having the minivend server start automatically when the
server reboots, and I get errors when running both the suggested
commands from the commandline as root. This is on FreeBSD 2.2.8
The commands I tried were:
su -c /usr/local/mvend/bin/start mvend
su -c mvend <<EOF
/usr/local/mvend/bin/start
EOF
which both resulted in the same error:
su: /nonexistent: No such file or directory
I'm sure this related to mvends password file entry, which looked like so
mvend:encrypted_passwd:1042:1042:Minivend
pseudo-user:/usr/local/mvend:/nonexistent
The solution was to use this syntax instead:
su -m mvend -c '/usr/local/mvend/bin/start'
I hope this is helpful to others!
-mark
http://flip.summersault.com
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list