Date: Thu, 04 Sep 2008 14:36:49 +0300 From: Manolis Kiagias <sonic2000gr@gmail.com> To: =?ISO-8859-2?Q?Sa=B9a_Stupar?= <sasa@stupar.homelinux.net> Cc: freebsd-questions@freebsd.org Subject: Re: Automatically starting user programs on boot Message-ID: <48BFC851.2080104@gmail.com> In-Reply-To: <3bd584700067958b3d0e6b681c98a709.squirrel@posta.homelinux.net> References: <3bd584700067958b3d0e6b681c98a709.squirrel@posta.homelinux.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Saša Stupar wrote: > Hi! > > On my FBSD 7 server I also use screen with rtorrent. In case of server > reboot (power outage, server goes on UPS then power down) the user need > manually to login, then start screen and then rtorrent. Is it possible to > start this procedure automatically and of course as certain user and not > as root? > I was thinking about .startup file or something in users home directory. > > Regards, > Sasa > > cron(8) seems to be a good candidate for this. Have a look at crontab(5). You can use @reboot to execute your script every time your PC starts. Just make sure your script sets the environment (PATH and so on) correctly.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48BFC851.2080104>