Editing Phpsessionclean.service (systemd service)

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{lowercase}}
+
* <code> [[systemctl cat]] phpsessionclean</code>
<code>phpsessionclean[[.service]]</code> is a [[Systemd services|systemd service]] in [[Ubuntu]] that executes <code>[[/usr/lib/php/sessionclean]]</code> <code>[[sh]]</code> script to clean [[stale]] [[php sessions]]. It is run every 30 minutes by [[phpsessionclean.timer]].
 
  
* <code> [[systemctl cat]] phpsessionclean</code> or <code>cat [[/lib/systemd/system/phpsessionclean.service]]</code>
+
# [[/lib/systemd/system/]]phpsessionclean[[.service]]
 
  [Unit]
 
  [Unit]
 
  Description=Clean php session files
 
  Description=Clean php session files
 
   
 
   
 
  [Service]
 
  [Service]
  [[Type]]=[[oneshot]]
+
  Type=[[oneshot]]
 
  [[ExecStart]]=[[/usr/lib/php/sessionclean]]
 
  [[ExecStart]]=[[/usr/lib/php/sessionclean]]
 
  [[ProtectHome]]=true
 
  [[ProtectHome]]=true
Line 13: Line 12:
 
  [[PrivateTmp]]=true
 
  [[PrivateTmp]]=true
  
To disable service:
+
== Activities ==
* <code>[[systemctl stop]] phpsessionclean.service</code>
+
* Execute <code>[[sessionclean]]</code> shell script to clean your [[PHP]] [[sessions]]
* <code>[[systemctl disable]] phpsessionclean.service</code>
 
* <code>systemctl stop phpsessionclean.timer</code>
 
* <code>systemctl disable phpsessionclean.timer</code>
 
  
 
== Activities ==
 
* Execute manually <code>[[sessionclean]]</code> shell script to clean your [[PHP]] [[sessions]]
 
  
 
== Related terms ==
 
== Related terms ==
 +
* <code>[[sessionclean]]</code> shell script
 
* <code>[[systemd]]</code>: <code>[[systemctl]]</code>
 
* <code>[[systemd]]</code>: <code>[[systemctl]]</code>
* <code>[[phpsessionclean.timer]]</code>
+
* <code>[[cat]]</code>
  
 
== See also ==
 
== See also ==
* {{PHP sessions}}
 
 
* {{PHP}}
 
* {{PHP}}
 
* {{systemctl}}
 
* {{systemctl}}

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: