我想在启动时启动我的树莓派上的Siriproxy服务器。我必须在终端中输入以下命令才能启动Siriproxy:
谢谢, David
这是我编辑的脚本:
cd siriproxy
rvmsudo siriproxy server
谢谢, David
这是我编辑的脚本:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi
#I added this line
/home/pi/siriproxy server
exit 0
/etc/init.d/cron start
/etc/init.d
中创建一个脚本。 - devnull