Auto startup (crontab) on \*nix #472

Open
opened 2025-04-21 15:11:06 -04:00 by idk · 3 comments
Owner

Opened 8 years ago

Last modified 8 years ago

#1033newenhancement

Auto startup (crontab) on *nix

Reported by:DISABLEDOwned by:
Priority:
minor
Milestone:

Component:
installer
Version:
0.9.7.1
Keywords:

Cc:

Parent Tickets:

Sensitive:
no

Description

Freenet insert a crontab entry to start Freenet on boot on *nix systems at least. Unknown if they use Windows voodoo to achieve the same on Windows.

I2P should do this.

Subtickets

Opened [8 years ago](/timeline?from=2013-09-18T16%3A19%3A32Z&precision=second "See timeline at Sep 18, 2013 4:19:32 PM") Last modified [8 years ago](/timeline?from=2013-10-24T23%3A44%3A36Z&precision=second "See timeline at Oct 24, 2013 11:44:36 PM") ## [\#1033](/ticket/1033)[new](/query?status=new)[enhancement](/query?status=!closed&type=enhancement) # Auto startup (crontab) on \*nix Reported by:[DISABLED](/query?status=!closed&reporter=guest)Owned by: Priority: [minor](/query?status=!closed&priority=minor) Milestone: Component: [installer](/query?status=!closed&component=installer) Version: [0.9.7.1](/query?status=!closed&version=0.9.7.1) Keywords: Cc: Parent Tickets: Sensitive: [no](/query?status=!closed&sensitive=0) ### Description Freenet insert a crontab entry to start Freenet on boot on \*nix systems at least. Unknown if they use Windows voodoo to achieve the same on Windows. I2P should do this. ### Subtickets
idk added this to the undecided milestone 2025-04-21 15:11:06 -04:00
idk added the
#1033
installer
labels 2025-04-21 15:11:06 -04:00
Author
Owner

comment:3 Changed 8 years ago by killyourtv

Freenet's installer adds the following to the crontab of the user that installed Freenet.

@reboot   "$FREENET_INSTALLATION_PATH/run.sh" start 2>&1 >/dev/null #FREENET AUTOSTART - 8888

While some apparently like it, I was *pissed* when I saw that Freenet added that cronjob _withoutanyprompting_. :P

If we decide this is a good idea, IMHO:

  1. It has to be opt-in;

  2. We'd have to be careful not to clobber the user's existing crontab due to variations in how cron is called on $OS;

  3. Is @reboot supported by other cron daemons than Vixie's cron? If not, will crond ignore it and continue, or will it be like some of the picky *BSD daemons and stop working all together?

Personally, I'd prefer this to be fixed with documentation explaining how to start I2P automatically in Windows, Linux (cron, sysvinit, systemd), FreeBSD, OSX, etc.

[comment:3](https://trac.i2p2.de/\#comment:3) Changed [8 years ago](https://trac.i2p2.de//timeline?from=2013-09-25T18%3A06%3A44Z&precision=second "See timeline at Sep 25, 2013 6:06:44 PM") by killyourtv Freenet's installer adds the following to the crontab of the user that installed Freenet. ``` @reboot "$FREENET_INSTALLATION_PATH/run.sh" start 2>&1 >/dev/null #FREENET AUTOSTART - 8888 ``` While some apparently like it, I was \*pissed\* when I saw that Freenet added that cronjob \_withoutanyprompting\_. :P If we decide this is a good idea, IMHO: 1) It has to be opt-in; 2) We'd have to be careful not to clobber the user's existing crontab due to variations in how `cron` is called on $OS; 3) Is @reboot supported by other cron daemons than Vixie's cron? If not, will crond ignore it and continue, or will it be like some of the picky \*BSD daemons and stop working all together? Personally, I'd prefer this to be fixed with documentation explaining how to start I2P automatically in Windows, Linux (cron, sysvinit, systemd), FreeBSD, OSX, etc.
Author
Owner

comment:2 Changed 8 years ago by DISABLED

yes this is the wrong way. kytv wrote many service methods for different init systems into i2prouter script also.

[comment:2](https://trac.i2p2.de/\#comment:2) Changed [8 years ago](https://trac.i2p2.de//timeline?from=2013-09-25T17%3A54%3A45Z&precision=second "See timeline at Sep 25, 2013 5:54:45 PM") by DISABLED yes this is the wrong way. kytv wrote many service methods for different init systems into i2prouter script also.
Author
Owner

comment:1 Changed 8 years ago by zzz

Component:unspecified →
installerMilestone:0.9.8Type:defect →
enhancement

crontab is for periodic tasks, not boot tasks. Our PPA package does offer to install as a service. To put that into the cross-platform installer sounds difficult.

[comment:1](https://trac.i2p2.de/\#comment:1) Changed [8 years ago](https://trac.i2p2.de//timeline?from=2013-09-19T17%3A55%3A38Z&precision=second "See timeline at Sep 19, 2013 5:55:38 PM") by zzz Component:unspecified → installerMilestone:0.9.8Type:defect → enhancement crontab is for periodic tasks, not boot tasks. Our PPA package does offer to install as a service. To put that into the cross-platform installer sounds difficult.
Sign in to join this conversation.
No Label
#1033
installer
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: I2P_Developers/i2p.i2p#472
No description provided.