Difference between revisions of "Phpsessionclean.service (systemd service)"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
Line 28: Line 28:
  
 
== See also ==
 
== See also ==
 +
* {{PHP sessions}}
 
* {{PHP}}
 
* {{PHP}}
 
* {{systemctl}}
 
* {{systemctl}}

Latest revision as of 19:53, 11 December 2023

phpsessionclean.service is a systemd service in Ubuntu that executes /usr/lib/php/sessionclean sh script to clean stale php sessions. It is run every 30 minutes by phpsessionclean.timer.

[Unit]
Description=Clean php session files

[Service]
Type=oneshot
ExecStart=/usr/lib/php/sessionclean
ProtectHome=true
ProtectSystem=true
PrivateTmp=true

To disable service:

  • systemctl stop phpsessionclean.service
  • systemctl disable phpsessionclean.service
  • systemctl stop phpsessionclean.timer
  • systemctl disable phpsessionclean.timer


Activities[edit]

Related terms[edit]

See also[edit]

Advertising: