Screen inside Jails + su

Erik Osterholm freebsd-lists-erik at
Wed Apr 9 18:42:17 UTC 2008

On Wed, Apr 09, 2008 at 03:05:03AM +0200, Wael Nasreddine wrote:
> This One Time, at Band Camp, Erik Osterholm <freebsd-lists-erik at> said, On Tue, Apr 08, 2008 at 07:52:17PM -0500:
> > On Wed, Apr 09, 2008 at 12:00:05AM +0200, Wael Nasreddine wrote:
> > The common way for a user to run a program at startup is to use
> > cron with the special @reboot directive instead of giving it a
> > time to run a job.
> >
> Thank you for pointing that out, could you please give me an example
> I haven't found on that page...

At your shell prompt, type:
man 5 crontab

You'll find the man page for the crontab file, which includes multiple
examples of cron entries.  All of those use the time specification,
though, rather than the @reboot keyword.

An example using @reboot:
@reboot			/usr/local/bin/screen -d -m Rtorrent

You can edit the crontab for the user with this command at your shell
crontab -u username -e

This will dump you into your editor, editing the crontab file for the
user "username".  Type in the crontab entry (for example, the one I
used as an example above), save, and try restarting the jail.


More information about the freebsd-questions mailing list