Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 May 2021 23:33:38 +0100
From:      Steve O'Hara-Smith <steve@sohara.org>
To:        Tomasz CEDRO <tomek@cedro.info>
Cc:        K Lu <kludev@gmail.com>, FreeBSD Questions Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: Can non-root user create/start services?
Message-ID:  <20210518233338.1f73940c1dd3c6eba2e649d3@sohara.org>
In-Reply-To: <CAM8r67AxnSPoT9sDFucqNeGMyU%2BgOXhVMk1vzW0Utd2qoCntvg@mail.gmail.com>
References:  <ED008A9A-A5BE-4BEB-B636-D60295F59C8A@gmail.com> <CAM8r67CD1Sd9nFz=1Wrui414eVUNuRMRkOJp4BONeO%2Bgep2zMA@mail.gmail.com> <CAM8r67Az%2BNG2qRui3LDmzx4TEnRjEqwp8dim2_dL=Ds6sdjzQA@mail.gmail.com> <CAEz5-SwTQMsN351Ug=j72iNueE0YRiGTRGWJ_esp_jtZh7_pVg@mail.gmail.com> <CAM8r67AxnSPoT9sDFucqNeGMyU%2BgOXhVMk1vzW0Utd2qoCntvg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 18 May 2021 23:28:09 +0200
Tomasz CEDRO <tomek@cedro.info> wrote:

> On Tue, May 18, 2021 at 10:52 PM K Lu  wrote:
> > Right, I don't want to change to root for those tasks.
> >
> > That's why I'm curious, if the user can define and start "per-user"
> > services. Not sure if I elaborate the use cases well :)
> >
> > Another option I can think of is using user cron jobs. Are there other
> > options?
> 
> Cron is good to run periodic tasks - every hour, day, week, month.

	Also @reboot which is ideal for services.

> You may want to put your local services into ~/.profile but that
> requires login for them to be launched. They would not launch at boot.

	They would also launch for every login.

-- 
Steve O'Hara-Smith <steve@sohara.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210518233338.1f73940c1dd3c6eba2e649d3>