Changes

Jump to: navigation, search

BeagleBone

596 bytes added, 18:28, 30 November 2013
Run a Script on Login (Start a Service)
cd /home/root/convexmirror
/usr/bin/screen -dmS mirror /home/root/convexmirror/convex_mirror.py
</syntaxhighlight>
make the scrip user executable
<syntaxhighlight lang="bash">
chmod u+x
</syntaxhighlight>
==Make a Service==
#make a service file,
<syntaxhighlight lang="bash">
vi /lib/systemd/system/cmirror.service
</syntaxhighlight>
#contents:
<syntaxhighlight lang="bash">
[Unit]
Description=Runs looping convex mirror code
After=syslog.target network.target
 
[Service]
Type=simple
ExecStart=/home/root/convexmirror/launch_mirror.sh
 
[Install]
WantedBy=multi-user.target
</syntaxhighlight>
#make links
<syntaxhighlight lang="bash">
cd /etc/systemd/system/
ln /lib/systemd/cvxmirror.service cvxmirror.service
</syntaxhighlight>
==Make a Service==
http://www.nunoalves.com/open_source/?p=308
http://kezhong.wordpress.com/2011/11/19/creating-my-own-systemd-service-files-on-fedora-16x86_64/

Navigation menu