Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
package main | |
import ( | |
"bytes" | |
"crypto/aes" | |
"crypto/cipher" | |
"fmt" | |
) | |
func main() { |
package main | |
import ( | |
"fmt" | |
"github.com/skratchdot/open-golang/open" | |
"net" | |
"net/http" | |
) | |
func main() { |
[bpm@dev000] c:/opt>cat sql | |
BEGIN; | |
CREATE OR REPLACE FUNCTION update_timestamp() | |
RETURNS TRIGGER AS $$ | |
BEGIN | |
NEW.updated = now(); | |
RETURN NEW; | |
END; | |
$$ language 'plpgsql'; | |
COMMIT; |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)