Wie man ein Linux-Terminal-Befehl, der beim Systemstart

Ich beginne meine Siriproxy-server auf meinem Raspberry Pi am Start. Ich den Typ

  1. cd siriproxy

  2. rvmsudo siriproxy server

in das Terminal zu starten, den Siriproxy.
Gibt es eine Möglichkeit, führen Sie den Befehl im startup?

Vielen Dank,

David

Dies ist das Skript, das ich bearbeitet:

#!/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
Erstellen Sie ein Skript in /etc/init.d.
Nein, da ich nicht weiß, wie dies zu tun und ich bin neu in Linux.

InformationsquelleAutor David Gölzhäuser | 2013-05-07

Schreibe einen Kommentar