Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Trac
Trac
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards

GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

  • Legacy
  • TracTrac
  • Issues
  • #2198

Closed
Open
Opened Nov 18, 2010 by Steven Murdoch@sjm217

Polipo cron task returns with exit code 1 if Polipo is not running

The Polipo cron job to reload the forbiddenFile and config file tries to not send a USR1/2 signal to Polipo if the PID file cannot be found. A side-effect of doing

[ -f "$PIDFILE" ] && kill -USR2 $(cat "$PIDFILE")

as the last line of a shell script is that if $PIDFILE does not exist, the shell script with exit will return code 1 (the return code of the last statement executed: [ -f "$PIDFILE" ]).

This occurs when Polipo is installed, but configured to not run on startup, and will cause cron to send an email to root.

I am using Polipo 1.0.4.1-1.1 from Ubuntu Maverick.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: legacy/trac#2198