Download logs
This commit is contained in:
@ -127,7 +127,7 @@
|
||||
},
|
||||
:targets [
|
||||
{
|
||||
:target {:filename "sable.ircd.log"},
|
||||
:target "stdout",
|
||||
:level "trace",
|
||||
:modules [ "sable" "audit" "client_listener" ],
|
||||
},
|
||||
@ -141,7 +141,7 @@
|
||||
(c/exec "echo" (json/write-str network_config_json) :> "/etc/sable/network_config.json")
|
||||
(c/exec "echo" (json/write-str (server_conf nodes node)) :> "/etc/sable/server.conf"))
|
||||
|
||||
(def logfile "/var/log/sable_ircd.stdout")
|
||||
(def logfile "/var/log/sable_ircd.log")
|
||||
(def pidfile "/var/run/sable_ircd.pid")
|
||||
|
||||
(defn sable
|
||||
@ -163,7 +163,6 @@
|
||||
"/tmp/sable_upload")]
|
||||
(c/su
|
||||
(c/exec* "mv" (str remote_tmp_path "/*") "/usr/local/bin/")))
|
||||
(info node "starting Sable")
|
||||
(c/su
|
||||
(cu/start-daemon!
|
||||
{:logfile logfile
|
||||
@ -179,8 +178,12 @@
|
||||
(teardown! [_ test node]
|
||||
(info node "tearing down Sable")
|
||||
(cu/stop-daemon! "sable_ircd" pidfile)
|
||||
;(c/exec "rm" "-f"
|
||||
; (map (fn [file] (str sable_bin_path file)) sable_binaries)
|
||||
; (map (fn [file] (str "/usr/local/bin/" file)) sable_binaries))
|
||||
;(c/exec "rm" "-rf" "/tmp/sable_upload" "/usr/local/etc/sable" "/etc/sable")
|
||||
)))
|
||||
(c/exec "rm" "-f"
|
||||
"/var/log/sable_ircd.log"
|
||||
(map (fn [file] (str "/usr/local/bin/" file)) sable_binaries))
|
||||
(c/exec "rm" "-rf" "/tmp/sable_upload" "/usr/local/etc/sable" "/etc/sable")
|
||||
)
|
||||
|
||||
db/LogFiles
|
||||
(log-files [_ test node]
|
||||
["/var/log/sable_ircd.log"])))
|
||||
|
Reference in New Issue
Block a user